mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Drop Qt4 support
This commit removes all code and configuration that was required for building with Qt4. Hopefully noone really needs it anymore. See issue #603.
This commit is contained in:
@@ -42,11 +42,7 @@ ColumnDisplayFormatDialog::~ColumnDisplayFormatDialog()
|
||||
|
||||
QString ColumnDisplayFormatDialog::selectedDisplayFormat() const
|
||||
{
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
|
||||
if(ui->comboDisplayFormat->currentData().toString() == "default")
|
||||
#else
|
||||
if(ui->comboDisplayFormat->itemData(ui->comboDisplayFormat->currentIndex()).toString() == "default")
|
||||
#endif
|
||||
return QString();
|
||||
else
|
||||
return ui->editDisplayFormat->text();
|
||||
@@ -54,11 +50,8 @@ QString ColumnDisplayFormatDialog::selectedDisplayFormat() const
|
||||
|
||||
void ColumnDisplayFormatDialog::updateSqlCode()
|
||||
{
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
|
||||
QString format = ui->comboDisplayFormat->currentData().toString();
|
||||
#else
|
||||
QString format = ui->comboDisplayFormat->itemData(ui->comboDisplayFormat->currentIndex()).toString();
|
||||
#endif
|
||||
|
||||
if(format == "default")
|
||||
ui->editDisplayFormat->setText(sqlb::escapeIdentifier(column_name));
|
||||
else if(format == "lower")
|
||||
|
||||
Reference in New Issue
Block a user