mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user