diff options
| author | Aleix Pol <aleixpol@kde.org> | 2015-10-01 16:20:57 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-10-01 16:20:57 (GMT) |
| commit | 70ee49fec1ac1c5153c619331cce6dc6b39c76ad (patch) | |
| tree | a021eb37bd9881a5b7e3f0217210a070a1134821 | |
| parent | 0ed8636547965faf878dca873c5a319c4be8eba0 (diff) | |
Polishing
Add override where useful
When showing the categories, just print the first one, instead of erroring
Unify the size of the updates page label.
| -rw-r--r-- | discover/MuonDiscoverMainWindow.cpp | 2 | ||||
| -rw-r--r-- | discover/MuonDiscoverMainWindow.h | 4 | ||||
| -rw-r--r-- | discover/qml/ApplicationsList.qml | 2 | ||||
| -rw-r--r-- | discover/qml/PresentUpdatesPage.qml | 1 |
4 files changed, 5 insertions, 4 deletions
diff --git a/discover/MuonDiscoverMainWindow.cpp b/discover/MuonDiscoverMainWindow.cpp index 091f036..ff7876e 100644 --- a/discover/MuonDiscoverMainWindow.cpp +++ b/discover/MuonDiscoverMainWindow.cpp @@ -207,7 +207,7 @@ bool MuonDiscoverMainWindow::isCompact() const return true; const qreal pixelDensity = windowHandle()->screen()->physicalDotsPerInch() / 25.4; - return (width()/pixelDensity)<70; //we'll use compact if the width of the window is less than 7cm + return (width()/pixelDensity)<100; //we'll use compact if the width of the window is less than 7cm } qreal MuonDiscoverMainWindow::actualWidth() const diff --git a/discover/MuonDiscoverMainWindow.h b/discover/MuonDiscoverMainWindow.h index 00f5455..3dfcc4a 100644 --- a/discover/MuonDiscoverMainWindow.h +++ b/discover/MuonDiscoverMainWindow.h @@ -56,8 +56,8 @@ class MuonDiscoverMainWindow : public KXmlGuiWindow bool isCompact() const; qreal actualWidth() const; - void resizeEvent(QResizeEvent * event); - void showEvent(QShowEvent * event); + void resizeEvent(QResizeEvent * event) override; + void showEvent(QShowEvent * event) override; public slots: void openApplication(const QString& app); diff --git a/discover/qml/ApplicationsList.qml b/discover/qml/ApplicationsList.qml index eae2961..71f500a 100644 --- a/discover/qml/ApplicationsList.qml +++ b/discover/qml/ApplicationsList.qml @@ -110,7 +110,7 @@ ScrollView { Label { - text: category + text: category[0] } Item { diff --git a/discover/qml/PresentUpdatesPage.qml b/discover/qml/PresentUpdatesPage.qml index 920c798..ee9fd2e 100644 --- a/discover/qml/PresentUpdatesPage.qml +++ b/discover/qml/PresentUpdatesPage.qml @@ -117,6 +117,7 @@ ScrollView } LabelBackground { + Layout.minimumWidth: 90 text: size } } |
