mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
Merge pull request 'Fix misc image scaling hangs' (#54) from tobtoht/feather:img_hang into master
Reviewed-on: https://git.wownero.com/feather/feather/pulls/54
This commit is contained in:
commit
2ab78022f5
6 changed files with 12 additions and 9 deletions
|
@ -23,6 +23,7 @@
|
|||
<file>assets/images/coldcard.png</file>
|
||||
<file>assets/images/coldcard_unpaired.png</file>
|
||||
<file>assets/images/confirmed.png</file>
|
||||
<file>assets/images/confirmed_icon.png</file>
|
||||
<file>assets/images/confirmed.svg</file>
|
||||
<file>assets/images/connect.svg</file>
|
||||
<file>assets/images/copy.png</file>
|
||||
|
@ -30,10 +31,12 @@
|
|||
<file>assets/images/edit.png</file>
|
||||
<file>assets/images/exchange.png</file>
|
||||
<file>assets/images/expired.png</file>
|
||||
<file>assets/images/expired_icon.png</file>
|
||||
<file>assets/images/eye1.png</file>
|
||||
<file>assets/images/feather.png</file>
|
||||
<file>assets/images/file.png</file>
|
||||
<file>assets/images/ghost.png</file>
|
||||
<file>assets/images/ghost_icon.png</file>
|
||||
<file>assets/images/history.png</file>
|
||||
<file>assets/images/info.png</file>
|
||||
<file>assets/images/key.png</file>
|
||||
|
|
BIN
src/assets/images/confirmed_icon.png
Normal file
BIN
src/assets/images/confirmed_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
BIN
src/assets/images/expired_icon.png
Normal file
BIN
src/assets/images/expired_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/images/ghost_icon.png
Normal file
BIN
src/assets/images/ghost_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
|
@ -8,8 +8,8 @@
|
|||
NodeModel::NodeModel(unsigned int nodeSource, QObject *parent)
|
||||
: QAbstractTableModel(parent)
|
||||
, m_nodeSource(nodeSource)
|
||||
, m_offline(QIcon(":/assets/images/expired.png"))
|
||||
, m_online(QIcon(":/assets/images/confirmed.png"))
|
||||
, m_offline(QIcon(":/assets/images/expired_icon.png"))
|
||||
, m_online(QIcon(":/assets/images/confirmed_icon.png"))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -334,15 +334,15 @@ int Utils::showMessageBox(const QString &windowTitle, const QString &body, bool
|
|||
msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
|
||||
msgBox.setDefaultButton(QMessageBox::Ok);
|
||||
|
||||
QPixmap iconWarning = QPixmap(":/assets/images/ghost.png")
|
||||
.scaled(QSize(48,48), Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
QPixmap iconInfo = QPixmap(":/assets/images/info.png")
|
||||
.scaled(QSize(48,48), Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
|
||||
if(warning)
|
||||
if(warning) {
|
||||
QPixmap iconWarning = QPixmap(":/assets/images/ghost_icon.png");
|
||||
msgBox.setIconPixmap(iconWarning);
|
||||
else
|
||||
}
|
||||
else {
|
||||
QPixmap iconInfo = QPixmap(":/assets/images/info.png")
|
||||
.scaled(QSize(48,48), Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
msgBox.setIconPixmap(iconInfo);
|
||||
}
|
||||
|
||||
return msgBox.exec();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue