Added window icon (and others). Plus minor fixes.
This commit is contained in:
@ -9,6 +9,18 @@ MainWindow::MainWindow(QWidget* parent)
|
||||
ui->setupUi(this);
|
||||
|
||||
m_core = std::make_shared<GenericCore>();
|
||||
|
||||
/// application icon
|
||||
const QString iconString = "://feature.png";
|
||||
#ifdef QT_DEBUG
|
||||
QPixmap pixmap = QPixmap(iconString);
|
||||
QTransform transform = QTransform();
|
||||
transform.rotate(180);
|
||||
QPixmap rotated = pixmap.transformed(transform);
|
||||
setWindowIcon(QIcon(rotated));
|
||||
#else
|
||||
setWindowIcon(QIcon(iconString));
|
||||
#endif
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow() { delete ui; }
|
||||
|
||||
Reference in New Issue
Block a user