Add static resources collection with pre-constructed QPixmaps & QIcons

* Apart from making the code cleaner when accessing them, creating these
  from strings can be slow if you do it often enough (e.g. once per
  resources for action/action_hover in pipeline state view).
This commit is contained in:
baldurk
2017-02-13 16:10:45 +00:00
parent fa33d883ac
commit f8ed197318
21 changed files with 331 additions and 184 deletions
@@ -24,6 +24,7 @@
#include "SuggestRemoteDialog.h"
#include <QMenu>
#include "Code/Resources.h"
#include "ui_SuggestRemoteDialog.h"
SuggestRemoteDialog::SuggestRemoteDialog(const QString &driver, const QString &machineIdent,
@@ -69,7 +70,7 @@ void SuggestRemoteDialog::remotesAdded()
tr("the capture locally?"));
ui->remote->setEnabled(true);
ui->remote->setIcon(QIcon(QPixmap(QString::fromUtf8(":/down_arrow.png"))));
ui->remote->setIcon(Icons::down_arrow());
ui->remote->setText("Remote");
}