Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 162 → Rev 163

/trunk/ClassEditor/delegate.h
7,6 → 7,7
#include <QSize>
#include <QSpinBox>
#include <QMap>
#include "iconform.h"
 
//! [0]
class SpinBoxDelegate : public QItemDelegate
/trunk/ClassEditor/iconform.h
New file
0,0 → 1,23
#ifndef ICONFORM_H
#define ICONFORM_H
 
#include <QWidget>
 
namespace Ui {
class IconForm;
}
 
class IconForm : public QWidget {
Q_OBJECT
public:
IconForm(QWidget *parent = 0);
~IconForm();
 
protected:
void changeEvent(QEvent *e);
 
private:
Ui::IconForm *ui;
};
 
#endif // ICONFORM_H
/trunk/ClassEditor/ClassEditor.pro
24,7 → 24,8
modelfordescriptiontable.cpp \
delegateforclassestable.cpp \
modelforpointers.cpp \
settingform.cpp
settingform.cpp \
iconform.cpp
HEADERS += classeditor.h \
mysql.h \
settingsdialog.h \
35,7 → 36,9
modelfordescriptiontable.h \
delegateforclassestable.h \
modelforpointers.h \
settingform.h
settingform.h \
iconform.h
FORMS += classeditor.ui \
settingsdialog.ui \
settingform.ui
settingform.ui \
iconform.ui
/trunk/ClassEditor/iconform.cpp
New file
0,0 → 1,26
#include "iconform.h"
#include "ui_iconform.h"
 
IconForm::IconForm(QWidget *parent) :
QWidget(parent),
ui(new Ui::IconForm)
{
ui->setupUi(this);
}
 
IconForm::~IconForm()
{
delete ui;
}
 
void IconForm::changeEvent(QEvent *e)
{
QWidget::changeEvent(e);
switch (e->type()) {
case QEvent::LanguageChange:
ui->retranslateUi(this);
break;
default:
break;
}
}