Skip to content

Instantly share code, notes, and snippets.

#include "roommanagementdialog.h"
#include "ui_roommanagementdialog.h"
roomManagementDialog::roomManagementDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::roomManagementDialog)
{
ui->setupUi(this);
//For using public slots from mainwindow.h
MainWindow conn;
void roomManagementDialog::on_editRoomSearchBTN_clicked()
{
MainWindow conn;
QSqlQueryModel * model=new QSqlQueryModel();
QSqlQueryModel * model2=new QSqlQueryModel();
conn.openDB();
qDebug() << "db opened for search button";
QSqlQuery* qry=new QSqlQuery(conn.myDB);
QSqlQuery* qry2=new QSqlQuery(conn.myDB);
QString SearchQry;
db opened for search button
User searched for "101"
Print out of query "SELECT * FROM RoomManagement WHERE (RoomNum) VALUES (:RoomNum)"
if it fails here its your sql query not the application connection to db no need to check if the db is open it is 1122 "No query Unable to fetch row"
end of create function 1125
Database closed mainwindow.cpp mainwindow::mainwindow
#ifndef LOGINSCREEN_H
#define LOGINSCREEN_H
#include <QWidget>
#include <QMainWindow>
#include <QFileInfo>
#include <QDateTime>
#include <QTimer>
#include "Admin/administration.h"
#include "Staff/staffaccess.h"
#include "loginscreen.h"
#include "ui_loginscreen.h"
#include "globalclass.h"
#include <QMessageBox>
loginScreen::loginScreen(QWidget *parent) :
QWidget(parent),
ui(new Ui::loginScreen)
{
#ifndef ADMINISTRATION_H
#define ADMINISTRATION_H
#include <QWidget>
#include "loginscreen.h"
namespace Ui {
class Administration;
}
#include "administration.h"
#include "ui_administration.h"
Administration::Administration(QWidget *parent) :
QWidget(parent),
ui(new Ui::Administration)
{
ui->setupUi(this);
}
16:45:30: Running steps for project HMS2...
16:45:30: Configuration unchanged, skipping qmake step.
16:45:30: Starting: "/usr/bin/make"
/home/ghostly/Qt/5.10.1/gcc_64/bin/uic ../HMS2/loginscreen.ui -o ui_loginscreen.h
/home/ghostly/Qt/5.10.1/gcc_64/bin/uic ../HMS2/Admin/administration.ui -o ui_administration.h
/home/ghostly/Qt/5.10.1/gcc_64/bin/uic ../HMS2/Staff/staffaccess.ui -o ui_staffaccess.h
g++ -c -pipe -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I../HMS2 -I. -I../../../../Qt/5.10.1/gcc_64/include -I../../../../Qt/5.10.1/gcc_64/include/QtWidgets -I../../../../Qt/5.10.1/gcc_64/include/QtGui -I../../../../Qt/5.10.1/gcc_64/include/QtSql -I../../../../Qt/5.10.1/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -I. -I../../../../Qt/5.10.1/gcc_64/mkspecs/linux-g++ -o main.o ../HMS2/main.cpp
In file included from ../HMS2/loginscreen.h:9:0,
from ../HMS2/main.cpp:1:
../HMS2/Admin/administratio
$(document).on('turbolinks:load', function() {
if (!(page.controller() === 'index' && page.action() === 'contact')) {
return;
}
Turbolinks.clearCache();
// only do this if you find the map_canvas_home, otherwise we don't need no maps
if (document.getElementById("map") !== null) {
// check to see if google map is loaded, if so, just init that map! Otherwise, create the script tag
if (isMapsApiLoaded) {
export default class Boot {
preload(){
console.log("preload");
this.load.image("preloader", '');
}
create(){
game.input.maxPointers = 1;
game.scene.start("preload");
}