Skip to content

Commit

Permalink
Fix compile with newer Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
kollix committed Oct 13, 2019
1 parent f5e2e1d commit d12f28a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Network.cxx
Expand Up @@ -111,7 +111,7 @@ void Network::checkState()
{
NetworkManager::AccessPoint::Ptr accessPoint = dev->activeAccessPoint();
int signalStrength = accessPoint.isNull() ? 0 : accessPoint->signalStrength();
int x = std::round(signalStrength / 25.0) * 25;
int x = qRound(signalStrength / 25.0) * 25;
pixmap = QIcon::fromTheme(QString("network-wireless-connected-%1").arg(x)).pixmap(size());

if ( !accessPoint.isNull() )
Expand Down
1 change: 1 addition & 0 deletions Network.hxx
Expand Up @@ -25,6 +25,7 @@

#include <SysTrayItem.hxx>
#include <NetworkList.hxx>
#include <QPointer>
#include <QTimer>
#include <QPixmap>

Expand Down
1 change: 1 addition & 0 deletions NetworkList.cxx
Expand Up @@ -24,6 +24,7 @@
#include <QToolButton>
#include <QScrollBar>
#include <QStyle>
#include <QTimer>
#include <QDebug>

#include <KLocalizedString>
Expand Down

0 comments on commit d12f28a

Please sign in to comment.