Verified Commit 242e0e5f authored by Tobias WEBER's avatar Tobias WEBER
Browse files

icons

parent 632b5bb3
......@@ -70,7 +70,9 @@ AboutDlg::AboutDlg(QWidget* parent, QSettings *sett)
titleWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
QLabel *labelIcon = new QLabel(titleWidget);
std::string icon_file = g_res.FindResource("taspaths.svg");
std::string icon_file = g_res.FindResource("taspaths.png");
if(icon_file == "")
icon_file = g_res.FindResource("taspaths.svg");
QIcon icon{icon_file.c_str()};
QPixmap pixmap = icon.pixmap(48, 48);
labelIcon->setPixmap(pixmap);
......
......@@ -963,7 +963,9 @@ PathsTool::PathsTool(QWidget* pParent) : QMainWindow{pParent}
{
setWindowTitle(TASPATHS_TITLE);
if(std::string icon_file = g_res.FindResource("taspaths.svg"); !icon_file.empty())
// set the svg icon
if(std::string icon_file = g_res.FindResource("taspaths.svg");
!icon_file.empty())
{
QIcon icon{icon_file.c_str()};
setWindowIcon(icon);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment