toolbarSearch = searchWrapper->getSearchLineEdit();
#else
toolbarSearch = new SearchLineEdit(this);
- qDebug() << "Qt SearchLineEdit" << toolbarSearch;
#endif
toolbarSearch->setMinimumWidth(toolbarSearch->fontInfo().pixelSize()*15);
toolbarSearch->setSuggester(new YTSuggester(this));
else title += QLatin1String(" - ") + Constants::NAME;
setWindowTitle(title);
+ statusToolBar->setUpdatesEnabled(false);
+
// dynamic view actions
foreach (QAction* action, viewActions)
showActionInStatusBar(action, false);
adjustStatusBarVisibility();
messageLabel->hide();
+ statusToolBar->setUpdatesEnabled(true);
+
/*
QString desc = metadata.value("description").toString();
if (!desc.isEmpty()) showMessage(desc);
bool MainWindow::confirmQuit() {
if (DownloadManager::instance()->activeItems() > 0) {
QMessageBox msgBox(this);
- msgBox.setIconPixmap(QPixmap(":/images/app.png").scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ msgBox.setIconPixmap(IconUtils::pixmap(":/images/app.png").scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
msgBox.setText(tr("Do you want to exit %1 with a download in progress?").arg(Constants::NAME));
msgBox.setInformativeText(tr("If you close %1 now, this download will be cancelled.").arg(Constants::NAME));
msgBox.setModal(true);
#ifdef APP_MAC
if (initialized && mac::CanGoFullScreen(winId())) {
bool isFullscreen = mac::IsFullScreen(winId());
- qDebug() << __PRETTY_FUNCTION__ << isFullscreen << fullscreenFlag;
if (isFullscreen != fullscreenFlag) {
if (compactViewAct->isChecked()) {
compactViewAct->setChecked(false);
}
void MainWindow::updateUIForFullscreen() {
- qDebug() << __PRETTY_FUNCTION__ << fullscreenFlag;
static QList<QKeySequence> fsShortcuts;
static QString fsText;
void MainWindow::simpleUpdateDialog(const QString &version) {
QMessageBox msgBox(this);
msgBox.setIconPixmap(
- QPixmap(":/images/app.png")
+ IconUtils::pixmap(":/images/app.png")
.scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
msgBox.setText(tr("%1 version %2 is now available.").arg(Constants::NAME, version));
msgBox.setModal(true);