mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Remove any remaining Oxygen style workarounds
This commit is contained in:
parent
bce5ef9a2e
commit
c83f7e3c01
@ -432,13 +432,6 @@ void BrowserWindow::setupUi()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Workaround for Oxygen tooltips not having transparent background
|
|
||||||
QPalette pal = QToolTip::palette();
|
|
||||||
QColor col = pal.window().color();
|
|
||||||
col.setAlpha(0);
|
|
||||||
pal.setColor(QPalette::Window, col);
|
|
||||||
QToolTip::setPalette(pal);
|
|
||||||
|
|
||||||
restoreUiState(uiState);
|
restoreUiState(uiState);
|
||||||
|
|
||||||
// Set some sane minimum width
|
// Set some sane minimum width
|
||||||
|
@ -55,12 +55,7 @@ int ProxyStyle::pixelMetric(PixelMetric metric, const QStyleOption* option, cons
|
|||||||
case PM_TabBarTabHSpace:
|
case PM_TabBarTabHSpace:
|
||||||
if (m_TabBarTabHSpace == -1) {
|
if (m_TabBarTabHSpace == -1) {
|
||||||
m_TabBarTabHSpace = qMin(QProxyStyle::pixelMetric(PM_TabBarTabHSpace, option, widget), 14);
|
m_TabBarTabHSpace = qMin(QProxyStyle::pixelMetric(PM_TabBarTabHSpace, option, widget), 14);
|
||||||
|
|
||||||
if (name() == QLatin1String("oxygen")) {
|
|
||||||
m_TabBarTabHSpace = 14;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return m_TabBarTabHSpace;
|
return m_TabBarTabHSpace;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -55,7 +55,7 @@ LocationBar::LocationBar(QWidget *parent)
|
|||||||
setObjectName("locationbar");
|
setObjectName("locationbar");
|
||||||
setDragEnabled(true);
|
setDragEnabled(true);
|
||||||
|
|
||||||
// Disable Oxygen QLineEdit transitions, it breaks with setText() && home()
|
// Disable KDE QLineEdit transitions, it breaks with setText() && home()
|
||||||
setProperty("_kde_no_animations", QVariant(true));
|
setProperty("_kde_no_animations", QVariant(true));
|
||||||
|
|
||||||
m_bookmarkIcon = new BookmarksIcon(this);
|
m_bookmarkIcon = new BookmarksIcon(this);
|
||||||
|
@ -135,16 +135,6 @@ void TipLabel::hideDelayed()
|
|||||||
m_timer->start();
|
m_timer->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TipLabel::resizeEvent(QResizeEvent* ev)
|
|
||||||
{
|
|
||||||
SqueezeLabelV1::resizeEvent(ev);
|
|
||||||
|
|
||||||
// Oxygen is setting rounded corners only for top-level tooltips
|
|
||||||
if (mApp->styleName() == QLatin1String("oxygen")) {
|
|
||||||
setMask(QzTools::roundedRect(rect(), 4));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void TipLabel::paintEvent(QPaintEvent* ev)
|
void TipLabel::paintEvent(QPaintEvent* ev)
|
||||||
{
|
{
|
||||||
QStylePainter p(this);
|
QStylePainter p(this);
|
||||||
|
@ -39,7 +39,6 @@ public:
|
|||||||
bool eventFilter(QObject* o, QEvent* e);
|
bool eventFilter(QObject* o, QEvent* e);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void resizeEvent(QResizeEvent* ev);
|
|
||||||
void paintEvent(QPaintEvent* ev);
|
void paintEvent(QPaintEvent* ev);
|
||||||
|
|
||||||
QTimer* m_timer;
|
QTimer* m_timer;
|
||||||
|
@ -531,12 +531,6 @@ void ComboTabBar::setUpLayout()
|
|||||||
height = qMax(m_mainTabBar->sizeHint().height(), m_pinnedTabBar->sizeHint().height());
|
height = qMax(m_mainTabBar->sizeHint().height(), m_pinnedTabBar->sizeHint().height());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Workaround for Oxygen theme. For some reason, QTabBar::height() returns bigger
|
|
||||||
// height than it actually should.
|
|
||||||
if (mApp->styleName() == QLatin1String("oxygen")) {
|
|
||||||
height -= 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
// We need to setup heights even before m_mainTabBar->height() has correct value
|
// We need to setup heights even before m_mainTabBar->height() has correct value
|
||||||
// So lets just set minimum 5px height
|
// So lets just set minimum 5px height
|
||||||
height = qMax(5, height);
|
height = qMax(5, height);
|
||||||
|
Loading…
Reference in New Issue
Block a user