From ea1a54c5f1b12f59f35b108ddf1b58fd7febc1d9 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 8 Nov 2010 18:23:13 +0000 Subject: [PATCH] Updated Changelog Fix cursor over status bar buttons --- Changelog | 1 + src/statusbar.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Changelog b/Changelog index b0476d497..43a89cfa5 100644 --- a/Changelog +++ b/Changelog @@ -6,6 +6,7 @@ - FEATURE: Added a transfer list column to display the current tracker - FEATURE: Remember the last trackers used in the torrent creation tool - FEATURE: The optimal piece size is now automatically computed in the torrent creation tool + - FEATURE: Bring up the connection settings when clicking on the connection status icon - COSMETIC: Replaced message box by on-screen notification for download errors - COSMETIC: Improved the torrent creation tool appearance diff --git a/src/statusbar.h b/src/statusbar.h index c669af3d3..a19c88629 100644 --- a/src/statusbar.h +++ b/src/statusbar.h @@ -58,7 +58,9 @@ public: container->setLayout(layout); connecStatusLblIcon = new QPushButton(); connecStatusLblIcon->setFlat(true); + connecStatusLblIcon->setFocusPolicy(Qt::NoFocus); connecStatusLblIcon->setFixedWidth(22); + connecStatusLblIcon->setCursor(Qt::PointingHandCursor); connecStatusLblIcon->setIcon(QIcon(":/Icons/skin/firewalled.png")); connecStatusLblIcon->setToolTip(QString::fromUtf8("")+tr("Connection status:")+QString::fromUtf8("
")+QString::fromUtf8("")+tr("No direct connections. This may indicate network configuration problems.")+QString::fromUtf8("")); dlSpeedLbl = new QPushButton(tr("D: %1 B/s - T: %2", "Download speed: x B/s - Transferred: x MiB").arg("0.0").arg(misc::friendlyUnit(0))); @@ -66,11 +68,13 @@ public: connect(dlSpeedLbl, SIGNAL(clicked()), this, SLOT(capDownloadSpeed())); dlSpeedLbl->setFlat(true); dlSpeedLbl->setFocusPolicy(Qt::NoFocus); + dlSpeedLbl->setCursor(Qt::PointingHandCursor); altSpeedsBtn = new QPushButton(); altSpeedsBtn->setFixedWidth(22); altSpeedsBtn->setFlat(true); altSpeedsBtn->setFocusPolicy(Qt::NoFocus); + altSpeedsBtn->setCursor(Qt::PointingHandCursor); updateAltSpeedsBtn(Preferences::isAltBandwidthEnabled()); connect(altSpeedsBtn, SIGNAL(clicked()), this, SLOT(toggleAlternativeSpeeds())); @@ -80,6 +84,7 @@ public: connect(upSpeedLbl, SIGNAL(clicked()), this, SLOT(capUploadSpeed())); upSpeedLbl->setFlat(true); upSpeedLbl->setFocusPolicy(Qt::NoFocus); + upSpeedLbl->setCursor(Qt::PointingHandCursor); DHTLbl = new QLabel(tr("DHT: %1 nodes").arg(0)); DHTLbl->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred); statusSep1 = new QFrame();