diff options
author | Arno <arno@disconnect.de> | 2019-11-23 03:43:41 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2019-11-23 03:43:41 +0100 |
commit | 1e3926c2caba595b16c4e03366c39e34c7581238 (patch) | |
tree | 208cdcb6c32fa638de7268d779bd1970a48ed0b9 /searchdialog.cpp | |
parent | 35289988e17743fea33ad82d1d4c620d6289d2fb (diff) | |
download | ShemovCleaner-1e3926c2caba595b16c4e03366c39e34c7581238.tar.gz ShemovCleaner-1e3926c2caba595b16c4e03366c39e34c7581238.tar.bz2 ShemovCleaner-1e3926c2caba595b16c4e03366c39e34c7581238.zip |
Fix deprecation warnings
Apparently QFontMetrics::width will be replaced by the much more
intuitive QFontMetrics::horizontalAdvance. Also, QTreeView::sortBy must
be called with a Qt::SortOrder as second argument.
Diffstat (limited to 'searchdialog.cpp')
-rw-r--r-- | searchdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchdialog.cpp b/searchdialog.cpp index ada0741..c558471 100644 --- a/searchdialog.cpp +++ b/searchdialog.cpp @@ -182,7 +182,7 @@ void SearchDialog::doSearchFilename(){ root->appendRow(cur); } mResV->setSortingEnabled(true); - mResV->sortByColumn(0); + mResV->sortByColumn(0, Qt::AscendingOrder); } void SearchDialog::doSearchActor(){ |