From ede0066129c078861e558a00b4496a1179b10fc5 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 2 Sep 2023 15:49:51 +0900 Subject: Replace TQ_*Focus* and TQ_Scale* defines Signed-off-by: Michele Calgaro (cherry picked from commit 992e8db5fd6bf4ba26c8856b63bd0f4db6daf6c6) --- src/kile/configstructure.cpp | 2 +- src/kile/kile.cpp | 10 +++++----- src/kile/kileprojectview.cpp | 2 +- src/kile/kileviewmanager.cpp | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/kile/configstructure.cpp b/src/kile/configstructure.cpp index b844428..5c9d7eb 100644 --- a/src/kile/configstructure.cpp +++ b/src/kile/configstructure.cpp @@ -73,7 +73,7 @@ KileTable::KileTable(TQWidget *dialog, TQWidget *parent, const char *name) : TQT setLeftMargin(0); setVScrollBarMode(TQScrollView::AlwaysOff); setHScrollBarMode(TQScrollView::AlwaysOff); - setFocusPolicy(TQ_NoFocus); + setFocusPolicy(TQWidget::NoFocus); horizontalHeader()->setResizeEnabled(false); horizontalHeader()->setClickEnabled(false); diff --git a/src/kile/kile.cpp b/src/kile/kile.cpp index 7c7b8e9..7bc2f3a 100644 --- a/src/kile/kile.cpp +++ b/src/kile/kile.cpp @@ -134,7 +134,7 @@ Kile::Kile( bool allowRestore, TQWidget *parent, const char *name ) : setupStatusBar(); m_topWidgetStack = new TQWidgetStack( this ); - m_topWidgetStack->setFocusPolicy(TQ_NoFocus); + m_topWidgetStack->setFocusPolicy(TQWidget::NoFocus); m_horizontalSplitter = new TQSplitter(Qt::Horizontal,m_topWidgetStack, "horizontalSplitter" ); @@ -304,7 +304,7 @@ void Kile::setupStructureView() { m_kwStructure = new KileWidget::Structure(this, m_sideBar); m_sideBar->addTab(m_kwStructure, SmallIcon("view_tree"), i18n("Structure")); - m_kwStructure->setFocusPolicy(TQ_ClickFocus); + m_kwStructure->setFocusPolicy(TQWidget::ClickFocus); connect(TQT_TQOBJECT(this), TQT_SIGNAL(configChanged()), m_kwStructure, TQT_SIGNAL(configChanged())); connect(m_kwStructure, TQT_SIGNAL(setCursor(const KURL &,int,int)), TQT_TQOBJECT(this), TQT_SLOT(setCursor(const KURL &,int,int))); connect(m_kwStructure, TQT_SIGNAL(fileOpen(const KURL&, const TQString & )), docManager(), TQT_SLOT(fileOpen(const KURL&, const TQString& ))); @@ -426,7 +426,7 @@ void Kile::setupAbbreviationView() void Kile::setupBottomBar() { m_bottomBar = new KileBottomBar(KileConfig::bottomBarSize(), m_verticalSplitter); - m_bottomBar->setFocusPolicy(TQ_ClickFocus); + m_bottomBar->setFocusPolicy(TQWidget::ClickFocus); m_logWidget = new KileWidget::LogMsg( this, m_bottomBar ); connect(m_logWidget, TQT_SIGNAL(showingErrorMessage(TQWidget* )), m_bottomBar, TQT_SLOT(showPage(TQWidget* ))); @@ -434,13 +434,13 @@ void Kile::setupBottomBar() connect(m_logWidget, TQT_SIGNAL(setLine(const TQString& )), TQT_TQOBJECT(this), TQT_SLOT(setLine(const TQString& ))); connect(m_docManager,TQT_SIGNAL(printMsg(int, const TQString &, const TQString &)),m_logWidget,TQT_SLOT(printMsg(int, const TQString &, const TQString &))); - m_logWidget->setFocusPolicy(TQ_ClickFocus); + m_logWidget->setFocusPolicy(TQWidget::ClickFocus); m_logWidget->setMinimumHeight(40); m_logWidget->setReadOnly(true); m_bottomBar->addTab(m_logWidget, SmallIcon("viewlog"), i18n("Log and Messages")); m_outputWidget = new KileWidget::Output(m_bottomBar); - m_outputWidget->setFocusPolicy(TQ_ClickFocus); + m_outputWidget->setFocusPolicy(TQWidget::ClickFocus); m_outputWidget->setMinimumHeight(40); m_outputWidget->setReadOnly(true); m_bottomBar->addTab(m_outputWidget, SmallIcon("output_win"), i18n("Output")); diff --git a/src/kile/kileprojectview.cpp b/src/kile/kileprojectview.cpp index b5a04e4..bfd4044 100644 --- a/src/kile/kileprojectview.cpp +++ b/src/kile/kileprojectview.cpp @@ -106,7 +106,7 @@ KileProjectView::KileProjectView(TQWidget *parent, KileInfo *ki) : TDEListView(p addColumn(i18n("Files & Projects"),-1); addColumn(i18n("Include in Archive"),10); setSorting(-1); - setFocusPolicy(TQ_ClickFocus); + setFocusPolicy(TQWidget::ClickFocus); header()->hide(); setRootIsDecorated(true); setAllColumnsShowFocus(true); diff --git a/src/kile/kileviewmanager.cpp b/src/kile/kileviewmanager.cpp index 2ccddf9..eed26ff 100644 --- a/src/kile/kileviewmanager.cpp +++ b/src/kile/kileviewmanager.cpp @@ -93,7 +93,7 @@ void Manager::createTabs(TQWidget *parent) connect(m_emptyDropWidget, TQT_SIGNAL(receivedDropEvent(TQDropEvent *)), m_ki->docManager(), TQT_SLOT(openDroppedURLs(TQDropEvent *))); m_tabs = new KTabWidget(parent); m_widgetStack->addWidget(m_tabs); - m_tabs->setFocusPolicy(TQ_ClickFocus); + m_tabs->setFocusPolicy(TQWidget::ClickFocus); m_tabs->setTabReorderingEnabled(true); m_tabs->setHoverCloseButton(true); m_tabs->setHoverCloseButtonDelayed(true); @@ -165,7 +165,7 @@ Kate::View* Manager::createTextView(KileDocument::TextInfo *info, int index) reflectDocumentStatus(view->getDoc(), false, 0); - view->setFocusPolicy(TQ_StrongFocus); + view->setFocusPolicy(TQWidget::StrongFocus); view->setFocus(); emit(prepareForPart("Editor")); -- cgit v1.2.1