mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Remove deprecated method
This commit is contained in:
parent
c32b899ae3
commit
ec8217035f
6
src/lib/3rdparty/fancytabwidget.cpp
vendored
6
src/lib/3rdparty/fancytabwidget.cpp
vendored
|
@ -502,18 +502,18 @@ FancyTabWidget::FancyTabWidget(QWidget* parent)
|
|||
proxy_style_(new FancyTabProxyStyle)
|
||||
{
|
||||
side_layout_->setSpacing(0);
|
||||
side_layout_->setMargin(0);
|
||||
side_layout_->setContentsMargins(0, 0, 0, 0);
|
||||
side_layout_->addSpacerItem(new QSpacerItem(0, 0, QSizePolicy::Fixed, QSizePolicy::Expanding));
|
||||
|
||||
side_widget_->setLayout(side_layout_);
|
||||
side_widget_->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
|
||||
|
||||
top_layout_->setMargin(0);
|
||||
top_layout_->setContentsMargins(0, 0, 0, 0);
|
||||
top_layout_->setSpacing(0);
|
||||
top_layout_->addLayout(stack_);
|
||||
|
||||
QHBoxLayout* main_layout = new QHBoxLayout;
|
||||
main_layout->setMargin(0);
|
||||
main_layout->setContentsMargins(0, 0, 0, 0);
|
||||
main_layout->setSpacing(1);
|
||||
main_layout->addWidget(side_widget_);
|
||||
main_layout->addLayout(top_layout_);
|
||||
|
|
|
@ -63,7 +63,7 @@ PopupWindow::PopupWindow(PopupWebView* view)
|
|||
m_notificationWidget = new QWidget(this);
|
||||
m_notificationWidget->setAutoFillBackground(true);
|
||||
QPalette pal = m_notificationWidget->palette();
|
||||
pal.setColor(QPalette::Background, pal.window().color().darker(110));
|
||||
pal.setColor(QPalette::Window, pal.window().color().darker(110));
|
||||
m_notificationWidget->setPalette(pal);
|
||||
|
||||
QVBoxLayout *nlayout = new QVBoxLayout(m_notificationWidget);
|
||||
|
@ -73,7 +73,7 @@ PopupWindow::PopupWindow(PopupWebView* view)
|
|||
|
||||
QWidget *viewSpacer = new QWidget(this);
|
||||
pal = viewSpacer->palette();
|
||||
pal.setColor(QPalette::Background, pal.window().color().darker(125));
|
||||
pal.setColor(QPalette::Window, pal.window().color().darker(125));
|
||||
viewSpacer->setPalette(pal);
|
||||
viewSpacer->setFixedHeight(1);
|
||||
viewSpacer->setAutoFillBackground(true);
|
||||
|
|
|
@ -169,7 +169,7 @@ WebTab::WebTab(QWidget *parent)
|
|||
m_notificationWidget = new QWidget(this);
|
||||
m_notificationWidget->setAutoFillBackground(true);
|
||||
QPalette pal = m_notificationWidget->palette();
|
||||
pal.setColor(QPalette::Background, pal.window().color().darker(110));
|
||||
pal.setColor(QPalette::Window, pal.window().color().darker(110));
|
||||
m_notificationWidget->setPalette(pal);
|
||||
|
||||
QVBoxLayout *nlayout = new QVBoxLayout(m_notificationWidget);
|
||||
|
|
|
@ -459,12 +459,12 @@ void ModelTest::data()
|
|||
}
|
||||
|
||||
// General Purpose roles that should return a QColor
|
||||
QVariant colorVariant = model->data(model->index(0, 0), Qt::BackgroundColorRole);
|
||||
QVariant colorVariant = model->data(model->index(0, 0), Qt::BackgroundRole);
|
||||
if (colorVariant.isValid()) {
|
||||
Q_ASSERT(colorVariant.canConvert<QColor>());
|
||||
}
|
||||
|
||||
colorVariant = model->data(model->index(0, 0), Qt::TextColorRole);
|
||||
colorVariant = model->data(model->index(0, 0), Qt::ForegroundRole);
|
||||
if (colorVariant.isValid()) {
|
||||
Q_ASSERT(colorVariant.canConvert<QColor>());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user