diff --git a/gui/main.cpp b/gui/main.cpp index 9dcd90c50..374f9c792 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -41,11 +41,11 @@ static bool CheckArgs(const QStringList &args); int main(int argc, char *argv[]) { - + #if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif - + QApplication app(argc, argv); #if QT_VERSION < 0x050000 diff --git a/gui/resultsview.cpp b/gui/resultsview.cpp index 8c37b232a..a4e829812 100644 --- a/gui/resultsview.cpp +++ b/gui/resultsview.cpp @@ -415,8 +415,7 @@ void ResultsView::logClear() void ResultsView::logCopyEntry() { const QListWidgetItem * item = mUI.mListLog->currentItem(); - if(nullptr != item) - { + if (nullptr != item) { QClipboard *clipboard = QApplication::clipboard(); clipboard->setText(item->text()); } @@ -425,11 +424,9 @@ void ResultsView::logCopyEntry() void ResultsView::logCopyComplete() { QString logText; - for(int i=0; i < mUI.mListLog->count(); ++i) - { + for (int i=0; i < mUI.mListLog->count(); ++i) { const QListWidgetItem * item = mUI.mListLog->item(i); - if(nullptr != item) - { + if (nullptr != item) { logText += item->text(); } } @@ -439,8 +436,7 @@ void ResultsView::logCopyComplete() void ResultsView::on_mListLog_customContextMenuRequested(const QPoint &pos) { - if(mUI.mListLog->count() > 0) - { + if (mUI.mListLog->count() > 0) { QPoint globalPos = mUI.mListLog->mapToGlobal(pos); QMenu contextMenu;