Skip to content

Commit

Permalink
Get kvantum icon from theme if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
tsujan committed Jul 22, 2018
1 parent 1fd4376 commit e8c4a55
Show file tree
Hide file tree
Showing 8 changed files with 1,417 additions and 1,422 deletions.
2 changes: 1 addition & 1 deletion Kvantum/NEWS
@@ -1,5 +1,5 @@
Latest version:

21 Jul 2018, V0.10.7
22 Jul 2018, V0.10.7

See "ChangeLog" for changes.
6 changes: 6 additions & 0 deletions Kvantum/kvantummanager/KvantumManager.cpp
Expand Up @@ -149,6 +149,12 @@ KvantumManager::KvantumManager (const QString& lang, QWidget *parent) : QMainWin
window->setFormat (format);
}

QIcon icn = QIcon::fromTheme ("kvantum");
if (icn.isNull())
icn = QIcon (":/Icons/kvantumpreview/data/kvantum.svg");
setWindowIcon (icn);
ui->preview->setIcon(icn);

resize (sizeHint().expandedTo (QSize (600, 400)));
}
/*************************/
Expand Down
564 changes: 282 additions & 282 deletions Kvantum/kvantummanager/data/translations/kvantummanager.ts

Large diffs are not rendered by default.

564 changes: 282 additions & 282 deletions Kvantum/kvantummanager/data/translations/kvantummanager_de.ts

Large diffs are not rendered by default.

564 changes: 282 additions & 282 deletions Kvantum/kvantummanager/data/translations/kvantummanager_eo.ts

Large diffs are not rendered by default.

564 changes: 282 additions & 282 deletions Kvantum/kvantummanager/data/translations/kvantummanager_lt.ts

Large diffs are not rendered by default.

564 changes: 282 additions & 282 deletions Kvantum/kvantummanager/data/translations/kvantummanager_pl.ts

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions Kvantum/kvantummanager/kvantummanager.ui
Expand Up @@ -11,10 +11,6 @@
<property name="windowTitle">
<string>Kvantum Manager</string>
</property>
<property name="windowIcon">
<iconset resource="kvantummanager.qrc">
<normaloff>:/Icons/kvantumpreview/data/kvantum.svg</normaloff>:/Icons/kvantumpreview/data/kvantum.svg</iconset>
</property>
<widget class="QWidget" name="widget">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
Expand Down Expand Up @@ -2012,10 +2008,6 @@ or update its preview.</string>
<property name="text">
<string>Preview</string>
</property>
<property name="icon">
<iconset resource="kvantummanager.qrc">
<normaloff>:/Icons/kvantumpreview/data/kvantum.svg</normaloff>:/Icons/kvantumpreview/data/kvantum.svg</iconset>
</property>
</widget>
</item>
<item row="2" column="2" alignment="Qt::AlignHCenter">
Expand Down Expand Up @@ -2075,8 +2067,5 @@ or update its preview.</string>
<header>combobox.h</header>
</customwidget>
</customwidgets>
<resources>
<include location="kvantummanager.qrc"/>
</resources>
<connections/>
</ui>

0 comments on commit e8c4a55

Please sign in to comment.