Remove use of more deprecated Qt functions, disable deprecation warnings

* Unfortunately at least one deprecated function
  QDesktopWidget::screenGeometry(const QPoint &p) has no easy alternative that
  works on 5.9 which is the version we have available by default on windows.
This commit is contained in:
baldurk
2019-07-10 17:39:03 +01:00
parent fb00089493
commit b56b597cbf
3 changed files with 6 additions and 3 deletions
@@ -64,7 +64,7 @@ SettingsDialog::SettingsDialog(ICaptureContext &ctx, QWidget *parent)
}
ui->pages->clearSelection();
ui->pages->setItemSelected(ui->pages->item(0), true);
ui->pages->item(0)->setSelected(true);
ui->tabWidget->setCurrentIndex(0);
ui->pages->setMinimumWidth(ui->pages->sizeHintForColumn(0));
@@ -218,7 +218,7 @@ void SettingsDialog::on_pages_itemSelectionChanged()
if(sel.empty())
{
ui->pages->setItemSelected(ui->pages->item(ui->tabWidget->currentIndex()), true);
ui->pages->item(ui->tabWidget->currentIndex())->setSelected(true);
}
else
{
@@ -496,7 +496,7 @@ public:
return qMin(maxColCount, sourceModel()->columnCount(parent));
}
void refresh() { QSortFilterProxyModel::filterChanged(); }
void refresh() { QSortFilterProxyModel::invalidateFilter(); }
int maxColCount = INT_MAX;
bool showFiles = true;
bool showDirs = true;
+3
View File
@@ -32,6 +32,9 @@ INCLUDEPATH += $$_PRO_FILE_PWD_/3rdparty/scintilla/include
# Disable conversions to/from const char * in QString
DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII
# Disable deprecation warnings that are default on in 5.13 and up
DEFINES += QT_NO_DEPRECATED_WARNINGS
# Different output folders per platform
win32 {