set application window icon

This commit is contained in:
Jean-Francois Dockes 2013-02-26 11:32:39 +01:00
parent 768b649c41
commit 0aaab57569
3 changed files with 4 additions and 0 deletions

BIN
src/qtgui/images/recoll.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B

View file

@ -351,6 +351,9 @@ int main(int argc, char **argv)
if (!prefs.stylesheetFile.isEmpty()) { if (!prefs.stylesheetFile.isEmpty()) {
applyStyleSheet(prefs.stylesheetFile); applyStyleSheet(prefs.stylesheetFile);
} }
QIcon icon;
icon.addFile(QString::fromUtf8(":/images/recoll.png"));
app.setWindowIcon(icon);
// Create main window and set its size to previous session's // Create main window and set its size to previous session's
RclMain w; RclMain w;

View file

@ -12,5 +12,6 @@
<file>images/table.png</file> <file>images/table.png</file>
<file>images/up.png</file> <file>images/up.png</file>
<file>images/down.png</file> <file>images/down.png</file>
<file>images/recoll.png</file>
</qresource> </qresource>
</RCC> </RCC>