mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user