iosql/sqlform.h

35 lines
587 B
C
Raw Permalink Normal View History

2011-06-24 11:05:56 +00:00
#ifndef SQLFORM_H
#define SQLFORM_H
#include <QDialog>
2011-06-24 13:26:14 +00:00
#include <QComboBox>
#include <QSqlDatabase>
#include <QSqlQueryModel>
2011-06-24 11:05:56 +00:00
#include <Qsci/qsciscintilla.h>
namespace Ui {
class SqlForm;
}
class SqlForm : public QDialog {
Q_OBJECT
public:
SqlForm(QWidget *parent = 0);
~SqlForm();
2011-06-24 13:26:14 +00:00
void reloadConnections();
2011-06-24 11:05:56 +00:00
protected:
void changeEvent(QEvent *e);
2011-06-24 13:26:14 +00:00
private slots:
void on_RunQueryAction_triggered();
2011-06-24 11:05:56 +00:00
private:
Ui::SqlForm *ui;
2011-06-24 13:26:14 +00:00
QSqlDatabase m_Database;
QSqlQueryModel *m_QueryModel;
QComboBox *m_ConnectionComboBox;
2011-06-24 11:05:56 +00:00
};
#endif // SQLFORM_H