File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,15 +35,23 @@ ColumnDisplayFormatDialog::~ColumnDisplayFormatDialog()
3535
3636QString ColumnDisplayFormatDialog::selectedDisplayFormat () const
3737{
38+ #if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
3839 if (ui->comboDisplayFormat ->currentData ().toString () == " default" )
40+ #else
41+ if (ui->comboDisplayFormat ->itemData (ui->comboDisplayFormat ->currentIndex ()).toString () == " default" )
42+ #endif
3943 return QString ();
4044 else
4145 return ui->editDisplayFormat ->text ();
4246}
4347
4448void ColumnDisplayFormatDialog::updateSqlCode ()
4549{
50+ #if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
4651 QString format = ui->comboDisplayFormat ->currentData ().toString ();
52+ #else
53+ QString format = ui->comboDisplayFormat ->itemData (ui->comboDisplayFormat ->currentIndex ()).toString ();
54+ #endif
4755 if (format == " default" )
4856 ui->editDisplayFormat ->setText (" `" + column_name + " `" );
4957 else if (format == " lower" )
You can’t perform that action at this time.
0 commit comments