From ad931745b35bfc91ec2fdf42cf5089efb344a60a Mon Sep 17 00:00:00 2001 From: mosfet80+ Date: Mon, 20 May 2024 21:41:50 +0200 Subject: [PATCH] [gui] code clean --- src/Gui/CommandStd.cpp | 2 +- src/Gui/DlgActionsImp.cpp | 1 - src/Gui/DownloadItem.cpp | 3 -- src/Gui/Tree.cpp | 70 --------------------------------------- 4 files changed, 1 insertion(+), 75 deletions(-) diff --git a/src/Gui/CommandStd.cpp b/src/Gui/CommandStd.cpp index 2c6035b5771ba..67089da500562 100644 --- a/src/Gui/CommandStd.cpp +++ b/src/Gui/CommandStd.cpp @@ -969,7 +969,7 @@ StdCmdReloadStyleSheet::StdCmdReloadStyleSheet() sWhatsThis = "Std_ReloadStyleSheet"; } -void StdCmdReloadStyleSheet::activated(int iMsg) +void StdCmdReloadStyleSheet::activated(int ) { auto mw = getMainWindow(); diff --git a/src/Gui/DlgActionsImp.cpp b/src/Gui/DlgActionsImp.cpp index ddddeb7d15621..9aef912ce4437 100644 --- a/src/Gui/DlgActionsImp.cpp +++ b/src/Gui/DlgActionsImp.cpp @@ -409,7 +409,6 @@ IconDialog::IconDialog(QWidget* parent) QStringList names = BitmapFactory().findIconFiles(); for (const auto & name : names) { item = new QListWidgetItem(ui->listWidget); - //item->setIcon(QIcon(*it)); item->setIcon(QIcon(BitmapFactory().pixmap((const char*)name.toUtf8()))); item->setText(QFileInfo(name).baseName()); item->setToolTip(name); diff --git a/src/Gui/DownloadItem.cpp b/src/Gui/DownloadItem.cpp index a9a96ea351428..2d8f747752f1c 100644 --- a/src/Gui/DownloadItem.cpp +++ b/src/Gui/DownloadItem.cpp @@ -529,9 +529,6 @@ void DownloadItem::downloadProgress(qint64 bytesReceived, qint64 bytesTotal) void DownloadItem::updateInfoLabel() { - //if (m_reply->error() == QNetworkReply::NoError) - // return; - qint64 bytesTotal = progressBar->maximum(); bool running = !downloadedSuccessfully(); diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index 9062db63f81b6..068f5dfe80ae1 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -1643,7 +1643,6 @@ void TreeWidget::mouseDoubleClickEvent(QMouseEvent* event) try { if (item->type() == TreeWidget::DocumentType) { - //QTreeWidget::mouseDoubleClickEvent(event); Gui::Document* doc = static_cast(item)->document(); if (!doc) return; @@ -2691,19 +2690,6 @@ void TreeWidget::sortDroppedObjects(TargetItemInfo& targetInfo, std::vector