summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 525242b..27d99d1 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -144,11 +144,11 @@ void MainWindow::reLayout()
newsY = m_Banner->geometry().bottom() + 10;
}
}
+ // Distro and custom icons left/right bottom
for (QWidget *w : m_DecoItems) {
w->setParent(nullptr);
w->deleteLater();
}
- // Distro and custom icons left/right bottom
m_DecoItems.clear();
int ls = (spaceY > 500 ? 500 : spaceY);
if (ls > m_ScreenRect.height() / 5) ls = m_ScreenRect.height() / 5;
@@ -272,6 +272,7 @@ void MainWindow::createNextLogo(QRect &max, QSize &retval, const QString &path)
}
QRect c(max.left() + 10, max.bottom() - realSize.height() - 10, realSize.width(), realSize.height());
img->setGeometry(c);
+ img->setVisible(true);
m_DecoItems.append(img);
max.setHeight(max.height() - virtualSize.height());
retval.setWidth(qMax(retval.width(), virtualSize.width()));
@@ -280,7 +281,7 @@ void MainWindow::createNextLogo(QRect &max, QSize &retval, const QString &path)
QSize MainWindow::createDistro(const QRect &max)
{
- QImage img(QString("/etc/distro.png"));
+ QImage img(QStringLiteral("/etc/distro.png"));
if (img.isNull())
return QSize(0, 0);
QSize realSize = img.size();
@@ -297,6 +298,7 @@ QSize MainWindow::createDistro(const QRect &max)
lbl->setPixmap(pixmap);
QRect c(max.right() - realSize.width() - 10, max.bottom() - realSize.height() - 10, realSize.width(), realSize.height());
lbl->setGeometry(c);
+ lbl->setVisible(true);
return virtualSize;
}
@@ -352,6 +354,7 @@ bool MainWindow::createLogWindow()
}
m_messages->setReadOnly(true);
m_messages->setStyleSheet("border:none; background:rgba(255,255,255,.33); border-radius:5px");
+ m_messages->setVisible(true);
return true;
}
@@ -367,6 +370,7 @@ void MainWindow::createNewsWindow()
m_News->setReadOnly(true);
m_News->setStyleSheet("border:none; background:rgba(255,255,255,.33); border-radius:5px");
m_News->setHtml(QString::fromUtf8(f.readAll()));
+ m_News->setVisible(true);
}
void MainWindow::createClock()
@@ -411,6 +415,7 @@ void MainWindow::createClock()
pLabelTextShadowEffect->setOffset(x, y);
m_Clock->setGraphicsEffect(pLabelTextShadowEffect);
m_Clock->setFixedWidth(this->width());
+ m_Clock->setVisible(true);
updateClock();
}