changed calendar widget to date edit
This commit is contained in:
parent
fc80dcb3b4
commit
7a3a8b13f9
@ -26,10 +26,12 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
m_widgetMapper->setModel(&m_dataModel->m_metaData);
|
m_widgetMapper->setModel(&m_dataModel->m_metaData);
|
||||||
m_widgetMapper->addMapping(ui->lineEdit, 0);
|
m_widgetMapper->addMapping(ui->lineEdit, 0);
|
||||||
m_widgetMapper->addMapping(ui->lineEdit_2, 1);
|
m_widgetMapper->addMapping(ui->lineEdit_2, 1);
|
||||||
m_widgetMapper->addMapping(ui->calendarWidget, 2);
|
m_widgetMapper->addMapping(ui->dateEdit, 2);
|
||||||
m_widgetMapper->addMapping(ui->calendarWidget_2, 3);
|
m_widgetMapper->addMapping(ui->dateEdit_2, 3);
|
||||||
m_widgetMapper->addMapping(ui->textEdit, 4);
|
m_widgetMapper->addMapping(ui->textEdit, 4);
|
||||||
m_widgetMapper->toFirst();
|
m_widgetMapper->toFirst();
|
||||||
|
|
||||||
|
connect(ui->calendarWidget, SIGNAL(selectionChanged()), m_widgetMapper, SLOT(submit()));
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
|
@ -91,6 +91,12 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QDateEdit" name="dateEdit"/>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="3">
|
||||||
|
<widget class="QDateEdit" name="dateEdit_2"/>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Reference in New Issue
Block a user