mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 08:54:13 -04:00
converted all calls to QIcon("somefile.png") into FilesDefs::getIconFromQtResourcePath("somefile.png") to save memory duplicated by Qt
This commit is contained in:
parent
dcbcc95e41
commit
209355b9a5
63 changed files with 330 additions and 291 deletions
|
@ -42,6 +42,7 @@
|
|||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "gui/common/FilesDefs.h"
|
||||
#include <gui/common/rshtml.h>
|
||||
#include <gui/common/vmessagebox.h>
|
||||
#include <gui/gxs/GxsIdDetails.h>
|
||||
|
@ -258,7 +259,7 @@ Rshare::Rshare(QStringList args, int &argc, char **argv, const QString &dir)
|
|||
#ifndef __APPLE__
|
||||
|
||||
/* set default window icon */
|
||||
setWindowIcon(QIcon(":/icons/logo_128.png"));
|
||||
setWindowIcon(FilesDefs::getIconFromQtResourcePath(":/icons/logo_128.png"));
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue