mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-19 18:26:34 +01:00
[Mac] Small fixes in themes + fixed building
Theme: fixed color of statusbar Building: fixed linking to CoreServices framework QzTools: show correct version of Mac OS X Code: coding style
This commit is contained in:
parent
d885444501
commit
b52d150e7d
@ -42,7 +42,7 @@
|
||||
|
||||
#mainwindow-statusbar
|
||||
{
|
||||
background-color: #b5b5b5;
|
||||
background-color: #a7a7a7;
|
||||
}
|
||||
|
||||
#statusbar-ip-label
|
||||
|
@ -119,7 +119,7 @@ QNetworkReply* AdBlockManager::block(const QNetworkRequest &request)
|
||||
}
|
||||
|
||||
#ifdef ADBLOCK_DEBUG
|
||||
qDebug() << timer.elapsed() << request.url();
|
||||
qDebug() << timer.elapsed() << request.url();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
@ -1778,6 +1778,7 @@ bool QupZilla::event(QEvent* event)
|
||||
statusBar()->setVisible(m_statusBarVisible);
|
||||
m_navigationContainer->show();
|
||||
m_tabWidget->showTabBar();
|
||||
m_tabWidget->getTabBar()->updateVisibilityWithFullscreen(true);
|
||||
#ifndef Q_OS_MAC
|
||||
m_navigationBar->buttonSuperMenu()->setVisible(!m_menuBarVisible);
|
||||
#endif
|
||||
|
@ -462,7 +462,7 @@ mac {
|
||||
HEADERS += other/macmenureceiver.h
|
||||
SOURCES += other/macmenureceiver.cpp
|
||||
|
||||
LIBS +=- framework CoreServices
|
||||
LIBS += -framework CoreServices
|
||||
}
|
||||
|
||||
message(===========================================)
|
||||
|
@ -613,6 +613,18 @@ void* QzTools::X11Display(const QWidget* widget)
|
||||
|
||||
QString QzTools::operatingSystem()
|
||||
{
|
||||
#ifdef Q_OS_MAC
|
||||
QString str = "Mac OS X";
|
||||
|
||||
SInt32 majorVersion;
|
||||
SInt32 minorVersion;
|
||||
|
||||
if (Gestalt(gestaltSystemVersionMajor, &majorVersion) == noErr && Gestalt(gestaltSystemVersionMinor, &minorVersion) == noErr) {
|
||||
str.append(QString(" %1.%2").arg(majorVersion).arg(minorVersion));
|
||||
}
|
||||
|
||||
return str;
|
||||
#endif
|
||||
#ifdef Q_OS_LINUX
|
||||
return "Linux";
|
||||
#endif
|
||||
@ -699,16 +711,4 @@ QString QzTools::operatingSystem()
|
||||
|
||||
return str;
|
||||
#endif
|
||||
#ifdef Q_OS_MAC
|
||||
QString str = "Mac OS X";
|
||||
|
||||
SInt32 majorVersion;
|
||||
SInt32 minorVersion;
|
||||
|
||||
if (Gestalt(gestaltSystemVersionMajor, &majorVersion) == noErr && Gestalt(gestaltSystemVersionMinor, &minorVersion) == noErr) {
|
||||
str.append(QString(" %1.%2").arg(majorVersion, minorVersion));
|
||||
}
|
||||
|
||||
return str;
|
||||
#endif
|
||||
}
|
||||
|
@ -755,7 +755,7 @@ void TabWidget::aboutToShowClosedTabsMenu()
|
||||
}
|
||||
}
|
||||
|
||||
QList<WebTab *> TabWidget::allTabs(bool withPinned)
|
||||
QList<WebTab*> TabWidget::allTabs(bool withPinned)
|
||||
{
|
||||
QList<WebTab*> allTabs;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user