diff --git a/src/chatview_webkit.cpp b/src/chatview_webkit.cpp index 6a7f5c6bf..c2379c908 100644 --- a/src/chatview_webkit.cpp +++ b/src/chatview_webkit.cpp @@ -520,7 +520,8 @@ ChatView::ChatView(QWidget *parent) : QFrame(parent), d(new ChatViewPrivate(this layout->setContentsMargins(0, 0, 0, 0); layout->addWidget(d->webView); setLayout(layout); - setFrameStyle(QFrame::StyledPanel | QFrame::Sunken); + setFrameShadow(QFrame::Sunken); + setFrameShape(QFrame::StyledPanel); setLooks(d->webView); #ifndef HAVE_X11 // linux has this feature built-in diff --git a/src/eventdlg.cpp b/src/eventdlg.cpp index 30b7f0ae3..f45ced4da 100644 --- a/src/eventdlg.cpp +++ b/src/eventdlg.cpp @@ -667,7 +667,8 @@ void EventDlg::init() l = new QLabel(tr("Time:"), this); hb2->addWidget(l); d->lb_time = new QLabel(this); - d->lb_time->setFrameStyle(QFrame::Panel | QFrame::Sunken); + d->lb_time->setFrameShadow(QFrame::Sunken); + d->lb_time->setFrameShape(QFrame::Panel); hb2->addWidget(d->lb_time); } @@ -689,7 +690,8 @@ void EventDlg::init() d->lb_count = new QLabel(this); d->lb_count->setToolTip(tr("Message length")); d->lb_count->setFixedWidth(40); - d->lb_count->setFrameStyle(QFrame::Panel | QFrame::Sunken); + d->lb_count->setFrameShadow(QFrame::Sunken); + d->lb_count->setFrameShape(QFrame::Panel); d->lb_count->setAlignment(Qt::AlignRight | Qt::AlignVCenter); d->lb_count->setNum(0); diff --git a/src/filetransdlg.cpp b/src/filetransdlg.cpp index 5055d767e..ee6630d97 100644 --- a/src/filetransdlg.cpp +++ b/src/filetransdlg.cpp @@ -586,7 +586,8 @@ FileRequestDlg::FileRequestDlg(const QDateTime &ts, FileTransfer *ft, PsiAccount hbLayout->addWidget(d->lb_ident); hbLayout->addWidget(new QLabel(tr("Time:"))); d->lb_time = new QLabel(QLocale().toString(ts.time(), QLocale::ShortFormat), hb); - d->lb_time->setFrameStyle(QFrame::Panel | QFrame::Sunken); + d->lb_time->setFrameShadow(QFrame::Sunken); + d->lb_time->setFrameShape(QFrame::Panel); hbLayout->addWidget(d->lb_time); connect(d->pa->psi(), SIGNAL(accountCountChanged()), this, SLOT(updateIdentityVisibility())); updateIdentityVisibility(); diff --git a/src/registrationdlg.cpp b/src/registrationdlg.cpp index 4f129eb9c..0c68592f7 100644 --- a/src/registrationdlg.cpp +++ b/src/registrationdlg.cpp @@ -150,7 +150,8 @@ RegistrationDlg::RegistrationDlg(const Jid &jid, PsiAccount *pa) : QDialog(nullp vb1->setContentsMargins(4, 4, 4, 4); d->lb_top = new QLabel(this); d->lb_top->setWordWrap(true); - d->lb_top->setFrameStyle(QFrame::Panel | QFrame::Sunken); + d->lb_top->setFrameShadow(QFrame::Sunken); + d->lb_top->setFrameShape(QFrame::Panel); d->lb_top->hide(); vb1->addWidget(d->lb_top); @@ -162,7 +163,8 @@ RegistrationDlg::RegistrationDlg(const Jid &jid, PsiAccount *pa) : QDialog(nullp QFrame *line = new QFrame(this); line->setFixedHeight(2); - line->setFrameStyle(QFrame::HLine | QFrame::Sunken); + line->setFrameShadow(QFrame::Sunken); + line->setFrameShape(QFrame::HLine); vb1->addWidget(line); QHBoxLayout *hb1 = new QHBoxLayout; diff --git a/src/widgets/eventnotifier.cpp b/src/widgets/eventnotifier.cpp index 9364f9583..8cb12f5f1 100644 --- a/src/widgets/eventnotifier.cpp +++ b/src/widgets/eventnotifier.cpp @@ -53,7 +53,8 @@ EventNotifier::EventNotifier(QWidget *parent, const char *name) : eventLayout->addWidget(eventLabel); eventLabel->setText(""); setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); - setFrameStyle(QFrame::Panel | QFrame::Sunken); + setFrameShadow(QFrame::Sunken); + setFrameShape(QFrame::Panel); connect(eventLabel, &ClickableLabel::clicked, this, &EventNotifier::clicked); } diff --git a/src/widgets/iconselect.cpp b/src/widgets/iconselect.cpp index 75f9a2f79..a347e2b5d 100644 --- a/src/widgets/iconselect.cpp +++ b/src/widgets/iconselect.cpp @@ -589,7 +589,7 @@ public slots: : 0; emotsScrollArea_->setMinimumWidth(emotsSel_->sizeHint().rwidth() + vBarWidth); emotsScrollArea_->setMinimumHeight(qMin(emotsSel_->sizeHint().rheight(), maxSize)); - emotsScrollArea_->setFrameStyle(QFrame::Plain); + emotsScrollArea_->setFrameShadow(QFrame::Plain); if (emotsSel_->rowSize()) { recentSel_->setRowSize(*emotsSel_->rowSize()); diff --git a/src/widgets/psitiplabel.cpp b/src/widgets/psitiplabel.cpp index 94e095d7d..39340a142 100644 --- a/src/widgets/psitiplabel.cpp +++ b/src/widgets/psitiplabel.cpp @@ -76,7 +76,7 @@ void PsiTipLabel::setText(const QString &text) void PsiTipLabel::initUi() { margin = 1 + style()->pixelMetric(QStyle::PM_ToolTipLabelFrameWidth, nullptr, this); - setFrameStyle(QFrame::NoFrame); + setFrameShape(QFrame::NoFrame); doc = new QTextDocument(this); QTextOption opt = doc->defaultTextOption();