Remove usage of Qt3 compatibility functions

This commit is contained in:
in3otd 2016-01-30 18:09:29 +01:00
parent ecb308d32f
commit 4da200e7b7
2 changed files with 5 additions and 5 deletions

View File

@ -25,8 +25,8 @@
#include <QGridLayout>
NewProjDialog::NewProjDialog(QWidget *parent, const char *name)
: QDialog(parent, name, true)
NewProjDialog::NewProjDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(tr("Create new project"));
@ -37,10 +37,10 @@ NewProjDialog::NewProjDialog(QWidget *parent, const char *name)
ProjName = new QLineEdit(this);
ProjName->setMinimumWidth(250);
connect(ProjName, SIGNAL(textChanged(const QString&)), SLOT(slotTextChanged(const QString&)));
gbox->addMultiCellWidget(ProjName,0,0,1,2);
gbox->addWidget(ProjName, 0, 1, 1, 2);
OpenProj = new QCheckBox(tr("open new project"));
OpenProj->setChecked(true);
gbox->addMultiCellWidget(OpenProj,1,1,1,2);
gbox->addWidget(OpenProj, 1, 1, 1, 2);
ButtonOk = new QPushButton(tr("Create"));
gbox->addWidget(ButtonOk,2,1);

View File

@ -33,7 +33,7 @@ class QGridLayout;
class NewProjDialog : public QDialog {
Q_OBJECT
public:
NewProjDialog(QWidget *parent=0, const char *name=0);
NewProjDialog(QWidget *parent=0);
~NewProjDialog();
QLineEdit *ProjName;