From 3f8cbc7f57f13d43fb05965486d1c0752e1e903b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 2 Sep 2023 15:48:04 +0900 Subject: Replace TQ_*Focus* and TQ_Scale* defines Signed-off-by: Michele Calgaro (cherry picked from commit cba78c439a23abcb5bb895505ff55de902c1c6aa) --- konversation/src/ircview.cpp | 2 +- konversation/src/konsolepanel.cpp | 2 +- konversation/src/logfilereader.cpp | 4 ++-- konversation/src/osd.cpp | 2 +- konversation/src/topiclabel.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/konversation/src/ircview.cpp b/konversation/src/ircview.cpp index 6f86aff..89dca72 100644 --- a/konversation/src/ircview.cpp +++ b/konversation/src/ircview.cpp @@ -93,7 +93,7 @@ IRCView::IRCView(TQWidget* parent, Server* newServer) : KTextBrowser(parent) setHScrollBarMode(AlwaysOff); setWrapPolicy(TQTextEdit::AtWordOrDocumentBoundary); setNotifyClick(true); - setFocusPolicy(TQ_ClickFocus); + setFocusPolicy(TQWidget::ClickFocus); // set basic style sheet for

to make paragraph spacing possible TQStyleSheet* sheet=new TQStyleSheet(TQT_TQOBJECT(this),"ircview_style_sheet"); diff --git a/konversation/src/konsolepanel.cpp b/konversation/src/konsolepanel.cpp index e604d37..d54ee5b 100644 --- a/konversation/src/konsolepanel.cpp +++ b/konversation/src/konsolepanel.cpp @@ -28,7 +28,7 @@ KonsolePanel::KonsolePanel(TQWidget *p) : ChatWindow( p ), k_part (0) k_part = (KParts::ReadOnlyPart *) fact->create(TQT_TQOBJECT(this)); if (!k_part) return; - k_part->widget()->setFocusPolicy(TQ_WheelFocus); + k_part->widget()->setFocusPolicy(TQWidget::WheelFocus); setFocusProxy(k_part->widget()); k_part->widget()->setFocus(); diff --git a/konversation/src/logfilereader.cpp b/konversation/src/logfilereader.cpp index e5cea7f..98514dd 100644 --- a/konversation/src/logfilereader.cpp +++ b/konversation/src/logfilereader.cpp @@ -63,8 +63,8 @@ LogfileReader::LogfileReader(TQWidget* parent, const TQString& log) : ChatWindow updateView(); resize(Preferences::logfileReaderSize()); - ircBox->ircView()->setFocusPolicy(TQ_StrongFocus); - setFocusPolicy(TQ_StrongFocus); + ircBox->ircView()->setFocusPolicy(TQWidget::StrongFocus); + setFocusPolicy(TQWidget::StrongFocus); setFocusProxy(ircBox->ircView()); connect(getTextView(), TQT_SIGNAL(gotFocus()), getTextView(), TQT_SLOT(setFocus())); diff --git a/konversation/src/osd.cpp b/konversation/src/osd.cpp index d342bab..a1567ab 100644 --- a/konversation/src/osd.cpp +++ b/konversation/src/osd.cpp @@ -39,7 +39,7 @@ OSDWidget::OSDWidget( const TQString &appName, TQWidget *parent, const char *nam , m_y( MARGIN ) , m_dirty( false ) { - setFocusPolicy( TQ_NoFocus ); + setFocusPolicy( TQWidget::NoFocus ); setBackgroundMode( NoBackground ); unsetColors(); diff --git a/konversation/src/topiclabel.cpp b/konversation/src/topiclabel.cpp index 773ac33..7036549 100644 --- a/konversation/src/topiclabel.cpp +++ b/konversation/src/topiclabel.cpp @@ -41,7 +41,7 @@ namespace Konversation : KActiveLabel(parent, name) { setWrapPolicy(TQTextEdit::AtWordOrDocumentBoundary); - setFocusPolicy(TQ_ClickFocus); + setFocusPolicy(TQWidget::ClickFocus); m_isOnChannel = false; m_copyUrlMenu = false; -- cgit v1.2.1