#include <dataviewer.h>
Public Slots | |
| void | showSqlScriptResult (QString line) |
| Append the line to the "Script Result" tab. | |
| void | sqlScriptStart () |
| Clean the "Script Result" report. | |
Public Member Functions | |
| DataViewer (QWidget *parent=0) | |
| ~DataViewer () | |
| bool | setTableModel (QAbstractItemModel *model, bool showButtons=false) |
| Set data model. See Qt model/view documentation. | |
| void | setStatusText (const QString &text) |
| Set text to the status widget. | |
| void | appendStatusText (const QString &text) |
| void | showStatusText (bool show) |
| Show/hide status widget. | |
| QSqlQueryModel * | tableData () |
| QStringList | tableHeader () |
| QByteArray | saveSplitter () |
| void | restoreSplitter (QByteArray state) |
| void | freeResources () |
| Free locked resources. | |
Static Public Member Functions | |
| static const QString | canFetchMore () |
| DataViewer::DataViewer | ( | QWidget * | parent = 0 |
) |
References Utils::getIcon().
| DataViewer::~DataViewer | ( | ) | [inline] |
| bool DataViewer::setTableModel | ( | QAbstractItemModel * | model, | |
| bool | showButtons = false | |||
| ) |
Set data model. See Qt model/view documentation.
| bool | true when the model is set succesfully |
References canFetchMore(), SqlTableModel::pendingTransaction(), and setStatusText().
Referenced by LiteManWindow::closeEvent().
| void DataViewer::setStatusText | ( | const QString & | text | ) |
| void DataViewer::appendStatusText | ( | const QString & | text | ) |
| void DataViewer::showStatusText | ( | bool | show | ) |
Show/hide status widget.
| QSqlQueryModel * DataViewer::tableData | ( | ) |
Referenced by DataExportDialog::DataExportDialog().
| QStringList DataViewer::tableHeader | ( | ) |
Referenced by DataExportDialog::DataExportDialog().
| QByteArray DataViewer::saveSplitter | ( | ) | [inline] |
| void DataViewer::restoreSplitter | ( | QByteArray | state | ) | [inline] |
| const QString DataViewer::canFetchMore | ( | ) | [static] |
Referenced by setTableModel().
| void DataViewer::freeResources | ( | ) |
Free locked resources.
| void DataViewer::showSqlScriptResult | ( | QString | line | ) | [slot] |
Append the line to the "Script Result" tab.
| void DataViewer::sqlScriptStart | ( | ) | [slot] |
Clean the "Script Result" report.
1.5.5