Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 122 → Rev 126

/trunk/DBViewer/delegate.h
6,8 → 6,12
#include <QObject>
#include <QSize>
#include <QSpinBox>
 
 
#include <QSqlQuery>
#include <QtSql>
#include <QtGui>
#include <QSqlDatabase>
#include <QMessageBox>
//#include <QMainWindow>
//! [0]
class SpinBoxDelegate : public QItemDelegate
{
25,6 → 29,27
 
void updateEditorGeometry(QWidget *editor,
const QStyleOptionViewItem &option, const QModelIndex &index) const;
 
 
 
void setInctance(QString newInctance);
void getItems(); // ïîëó÷àåì ñâÿçàííûé ñïèñîê
 
 
 
 
private:
 
 
QString inctance; // òàáëèöà-õðàíèëèùå, îòêóäà áóäåì áðàòü ñïèñîê
QMap <QString, QString> items; // çäåñü áóäåì õðàíèòü ñâÿçàííûé ñïèñîê èìåò îáúåêòîâ è èõ èäåíòèôèêàòîðîâ ID
 
 
 
 
 
 
 
};
//! [0]