diff options
| author | Tobias Markmann <tm@ayena.de> | 2015-10-20 13:03:41 (GMT) |
|---|---|---|
| committer | Swift Review <review@swift.im> | 2015-10-27 08:38:54 (GMT) |
| commit | 193335248b00556f0011b7e32b148a7a2c0eefe2 (patch) | |
| tree | 38e4018d41a6f13ee6fbc977b88eeefa75e5af33 /Swift/QtUI/UserSearch | |
| parent | 375937b46f941a7e266b1e3aca9a95002a0483bd (diff) | |
| download | swift-193335248b00556f0011b7e32b148a7a2c0eefe2.zip swift-193335248b00556f0011b7e32b148a7a2c0eefe2.tar.bz2 | |
Change window icon to default avatar on Windows
The task bar in Windows 10 has black as the default color.
The mainly black Swift application icon is hardly visible on
black background. Thus this patch changes the Window icon
on Windows to the default avatar icon in Swift.
Test-Information:
Tested on Windows 8 and Windows 10.
Change-Id: I1965cf37ba5a714094cff24ab971c0fc9f9d7fe1
Diffstat (limited to 'Swift/QtUI/UserSearch')
| -rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchWindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp index bb6fc31..52b17b0 100644 --- a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp +++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp | |||
| @@ -37,12 +37,16 @@ | |||
| 37 | namespace Swift { | 37 | namespace Swift { |
| 38 | 38 | ||
| 39 | QtUserSearchWindow::QtUserSearchWindow(UIEventStream* eventStream, UserSearchWindow::Type type, const std::set<std::string>& groups, SettingsProvider* settingsProvider) : eventStream_(eventStream), type_(type), model_(NULL), firstMultiJIDPage_(NULL), settings_(settingsProvider), searchNext_(false), supportsImpromptu_(false) { | 39 | QtUserSearchWindow::QtUserSearchWindow(UIEventStream* eventStream, UserSearchWindow::Type type, const std::set<std::string>& groups, SettingsProvider* settingsProvider) : eventStream_(eventStream), type_(type), model_(NULL), firstMultiJIDPage_(NULL), settings_(settingsProvider), searchNext_(false), supportsImpromptu_(false) { |
| 40 | setupUi(this); | 40 | setupUi(this); |
| 41 | #ifndef Q_OS_MAC | 41 | #ifndef Q_OS_MAC |
| 42 | #ifdef Q_OS_WIN32 | ||
| 43 | setWindowIcon(QIcon(":/logo-icon-16-win.png")); | ||
| 44 | #else | ||
| 42 | setWindowIcon(QIcon(":/logo-icon-16.png")); | 45 | setWindowIcon(QIcon(":/logo-icon-16.png")); |
| 43 | #endif | 46 | #endif |
| 47 | #endif | ||
| 44 | QString title; | 48 | QString title; |
| 45 | switch(type) { | 49 | switch(type) { |
| 46 | case AddContact: | 50 | case AddContact: |
| 47 | title = tr("Add Contact"); | 51 | title = tr("Add Contact"); |
| 48 | break; | 52 | break; |
Swift