mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-30 00:57:28 -04:00
switched all explicit pixmap from files to shared FilesDefs::getPixmapFromQtResourcePath()
This commit is contained in:
parent
f8989ce944
commit
76511479af
90 changed files with 275 additions and 225 deletions
|
@ -154,7 +154,7 @@ ChatLobbyDialog::ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent, Qt::Wi
|
|||
|
||||
{
|
||||
QIcon icon ;
|
||||
icon.addPixmap(QPixmap(":/icons/png/invite.png")) ;
|
||||
icon.addPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/png/invite.png")) ;
|
||||
inviteFriendsButton->setIcon(icon) ;
|
||||
inviteFriendsButton->setIconSize(icon_size);
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ ChatLobbyDialog::ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent, Qt::Wi
|
|||
|
||||
{
|
||||
QIcon icon ;
|
||||
icon.addPixmap(QPixmap(":/icons/png/leave.png")) ;
|
||||
icon.addPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/png/leave.png")) ;
|
||||
unsubscribeButton->setIcon(icon) ;
|
||||
unsubscribeButton->setIconSize(icon_size);
|
||||
}
|
||||
|
@ -994,7 +994,7 @@ void ChatLobbyDialog::setWindowed(bool windowed)
|
|||
mPCWindow->addDialog(this);
|
||||
|
||||
undockButton->setToolTip(tr("Redock to Main window"));
|
||||
icon.addPixmap(QPixmap(":/icons/png/dock.png")) ;
|
||||
icon.addPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/png/dock.png")) ;
|
||||
undockButton->setIcon(icon) ;
|
||||
undockButton->setIconSize(icon_size);
|
||||
}
|
||||
|
@ -1009,7 +1009,7 @@ void ChatLobbyDialog::setWindowed(bool windowed)
|
|||
chatLobbyPage->addChatPage(this);
|
||||
|
||||
undockButton->setToolTip(tr("Undock to a new window"));
|
||||
icon.addPixmap(QPixmap(":/icons/png/undock.png")) ;
|
||||
icon.addPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/png/undock.png")) ;
|
||||
undockButton->setIcon(icon) ;
|
||||
undockButton->setIconSize(icon_size);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue