changed calendar widget to date edit

This commit is contained in:
Michael Mandl 2018-05-17 09:22:52 +02:00
parent fc80dcb3b4
commit 7a3a8b13f9
2 changed files with 10 additions and 2 deletions

View file

@ -26,10 +26,12 @@ MainWindow::MainWindow(QWidget *parent)
m_widgetMapper->setModel(&m_dataModel->m_metaData);
m_widgetMapper->addMapping(ui->lineEdit, 0);
m_widgetMapper->addMapping(ui->lineEdit_2, 1);
m_widgetMapper->addMapping(ui->calendarWidget, 2);
m_widgetMapper->addMapping(ui->calendarWidget_2, 3);
m_widgetMapper->addMapping(ui->dateEdit, 2);
m_widgetMapper->addMapping(ui->dateEdit_2, 3);
m_widgetMapper->addMapping(ui->textEdit, 4);
m_widgetMapper->toFirst();
connect(ui->calendarWidget, SIGNAL(selectionChanged()), m_widgetMapper, SLOT(submit()));
}
MainWindow::~MainWindow()

View file

@ -91,6 +91,12 @@
</property>
</widget>
</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>
</widget>
</item>