Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9074681d6e)
r14.1.x
Michele Calgaro 1 year ago
parent 4bd5c010cf
commit 286a5b177f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -69,7 +69,7 @@ ConfigCodeCompletion::ConfigCodeCompletion(TDEConfig *config, KileWidget::LogMsg
// below: OptionBox
TQButtonGroup *bg_options = new TQButtonGroup( this, "bgOptions" );
bg_options->setColumnLayout(0, Qt::Vertical );
bg_options->setColumnLayout(0, TQt::Vertical );
bg_options->layout()->setSpacing( 6 );
bg_options->layout()->setMargin( 11 );
TQGridLayout *bg_optionsLayout = new TQGridLayout( bg_options->layout() );

@ -151,12 +151,12 @@ ConfigStructure::ConfigStructure(TQWidget *parent, const char *name )
m_sectioningtable->horizontalHeader()->setLabel(2,SmallIcon("structure"),"Structure Node");
// default structure level
TQGroupBox *structGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Structure View"), widget2);
TQGroupBox *structGroup = new TQGroupBox(2, TQt::Horizontal, i18n("Structure View"), widget2);
TQLabel *label9 = new TQLabel(i18n("Default expansion &level: "),structGroup);
m_structurelevel = new TQSpinBox(1,5, 1, structGroup);
label9->setBuddy(m_structurelevel);
TQGroupBox *classGroup = new TQGroupBox(1,Qt::Horizontal,i18n("Document Classes"), widget2);
TQGroupBox *classGroup = new TQGroupBox(1,TQt::Horizontal,i18n("Document Classes"), widget2);
TQWidget *widget4 = new TQWidget(classGroup);
TQHBoxLayout *hbox4 = new TQHBoxLayout(widget4, 5,KDialog::spacingHint() );
TQLabel *label10 = new TQLabel("Manage classes:",widget4);

@ -38,7 +38,7 @@ FloatEnvironmentDialog::FloatEnvironmentDialog(TDEConfig *config, KileInfo *ki,
// environment groupbox
TQButtonGroup *egroup = new TQButtonGroup( i18n("Environment"),page);
egroup->setColumnLayout(0, Qt::Vertical );
egroup->setColumnLayout(0, TQt::Vertical );
egroup->layout()->setSpacing( 6 );
egroup->layout()->setMargin( 11 );
TQGridLayout *egrouplayout = new TQGridLayout( egroup->layout() );
@ -52,7 +52,7 @@ FloatEnvironmentDialog::FloatEnvironmentDialog(TDEConfig *config, KileInfo *ki,
// position groupbox
TQButtonGroup *pgroup = new TQButtonGroup( i18n("Position"),page);
pgroup->setColumnLayout(0, Qt::Vertical );
pgroup->setColumnLayout(0, TQt::Vertical );
pgroup->layout()->setSpacing( 6 );
pgroup->layout()->setMargin( 11 );
TQGridLayout *pgrouplayout = new TQGridLayout( pgroup->layout() );

@ -130,7 +130,7 @@ IncludeGraphics::IncludeGraphics(TQWidget *parent, const TQString &startdir, Kil
grid_opt->addWidget( edit_bb, 1,3 );
// third groupbox: figure environment
TQGroupBox *gb_fig= new TQGroupBox(2,Qt::Horizontal,i18n("Figure Environment"), plainPage());
TQGroupBox *gb_fig= new TQGroupBox(2,TQt::Horizontal,i18n("Figure Environment"), plainPage());
TQWidget *widget_fig = new TQWidget(gb_fig);
TQGridLayout *grid_fig = new TQGridLayout( widget_fig, 3,2, 6,6, "");

@ -136,11 +136,11 @@ Kile::Kile( bool allowRestore, TQWidget *parent, const char *name ) :
m_topWidgetStack = new TQWidgetStack( this );
m_topWidgetStack->setFocusPolicy(TQWidget::NoFocus);
m_horizontalSplitter = new TQSplitter(Qt::Horizontal,m_topWidgetStack, "horizontalSplitter" );
m_horizontalSplitter = new TQSplitter(TQt::Horizontal,m_topWidgetStack, "horizontalSplitter" );
setupSideBar();
m_verticalSplitter=new TQSplitter(Qt::Vertical, m_horizontalSplitter, "verticalSplitter");
m_verticalSplitter=new TQSplitter(TQt::Vertical, m_horizontalSplitter, "verticalSplitter");
viewManager()->createTabs(m_verticalSplitter);
connect(viewManager(), TQT_SIGNAL(activateView(TQWidget*, bool)), TQT_TQOBJECT(this), TQT_SLOT(activateView(TQWidget*, bool)));

@ -56,7 +56,7 @@ bool KileEventFilter::eventFilter(TQObject *o, TQEvent *e)
else if ( e->type() == TQEvent::MouseButtonDblClick)
{
TQMouseEvent *me = (TQMouseEvent*) e;
if ( me->button()==Qt::LeftButton && ((me->state() & TQt::ControlButton) == TQt::ControlButton) )
if ( me->button()==TQt::LeftButton && ((me->state() & TQt::ControlButton) == TQt::ControlButton) )
{
m_edit->selectWord(KileDocument::EditorExtension::smTex);
return true;

@ -87,7 +87,7 @@ KileGrepDialog::KileGrepDialog(TQWidget *parent, KileInfo *ki, KileGrep::Mode mo
// project groupbox
TQGroupBox *projectgroup = new TQGroupBox( i18n("Project"),page);
projectgroup->setColumnLayout(0, Qt::Vertical );
projectgroup->setColumnLayout(0, TQt::Vertical );
projectgroup->layout()->setSpacing( 6 );
projectgroup->layout()->setMargin( 11 );
TQGridLayout *projectgrouplayout = new TQGridLayout( projectgroup->layout() );
@ -111,7 +111,7 @@ KileGrepDialog::KileGrepDialog(TQWidget *parent, KileInfo *ki, KileGrep::Mode mo
// search groupbox
TQGroupBox *searchgroup = new TQGroupBox( i18n("Search"),page);
searchgroup->setColumnLayout(0, Qt::Vertical );
searchgroup->setColumnLayout(0, TQt::Vertical );
searchgroup->layout()->setSpacing( 6 );
searchgroup->layout()->setMargin( 11 );
TQGridLayout *searchgrouplayout = new TQGridLayout( searchgroup->layout() );
@ -163,7 +163,7 @@ KileGrepDialog::KileGrepDialog(TQWidget *parent, KileInfo *ki, KileGrep::Mode mo
// filter groupbox
TQGroupBox *filtergroup = new TQGroupBox( i18n("Directory Options"),page);
filtergroup->setColumnLayout(0, Qt::Vertical );
filtergroup->setColumnLayout(0, TQt::Vertical );
filtergroup->layout()->setSpacing( 6 );
filtergroup->layout()->setMargin( 11 );
TQGridLayout *filtergrouplayout = new TQGridLayout( filtergroup->layout() );
@ -203,7 +203,7 @@ KileGrepDialog::KileGrepDialog(TQWidget *parent, KileInfo *ki, KileGrep::Mode mo
resultbox->setMinimumHeight(150);
// button box
KButtonBox *actionbox = new KButtonBox(page, Qt::Horizontal);
KButtonBox *actionbox = new KButtonBox(page, TQt::Horizontal);
search_button = actionbox->addButton(i18n("&Search"));
search_button->setDefault(true);
search_button->setEnabled(false);

@ -62,8 +62,8 @@ public:
* The tab bar's orientation. Also constraints the bar's position.
*/
enum KileMultiTabBarMode {
Horizontal, ///<Qt::Horizontal orientation (i.e. on top or bottom)
Vertical ///<Qt::Vertical orientation (i.e. on the left or right hand side)
Horizontal, /// Horizontal orientation (i.e. on top or bottom)
Vertical /// Vertical orientation (i.e. on the left or right hand side)
};
/**

@ -61,7 +61,7 @@ KileProjectDlgBase::KileProjectDlgBase(const TQString &caption, KileDocument::Ex
{
// properties groupbox
m_pgroup = new TQVGroupBox(i18n("Project"), plainPage());
m_pgroup->setColumnLayout(0, Qt::Vertical );
m_pgroup->setColumnLayout(0, TQt::Vertical );
m_pgroup->layout()->setSpacing( 6 );
m_pgroup->layout()->setMargin( 11 );
m_pgrid = new TQGridLayout( m_pgroup->layout() );
@ -75,7 +75,7 @@ KileProjectDlgBase::KileProjectDlgBase(const TQString &caption, KileDocument::Ex
// extensions groupbox
m_egroup= new TQVGroupBox(i18n("Extensions"), plainPage());
m_egroup->setColumnLayout(0, Qt::Vertical );
m_egroup->setColumnLayout(0, TQt::Vertical );
m_egroup->layout()->setSpacing( 6 );
m_egroup->layout()->setMargin( 11 );
m_egrid = new TQGridLayout( m_egroup->layout() );
@ -491,7 +491,7 @@ KileProjectOptionsDlg::KileProjectOptionsDlg(KileProject *project, KileDocument:
// third groupbox
TQVGroupBox* group3 = new TQVGroupBox(i18n("Properties"), plainPage());
group3->setColumnLayout(0, Qt::Vertical );
group3->setColumnLayout(0, TQt::Vertical );
group3->layout()->setSpacing( 6 );
group3->layout()->setMargin( 11 );
TQGridLayout *grid3 = new TQGridLayout( group3->layout() );

@ -26,7 +26,7 @@
#include "symbolview.h"
KileSideBar::KileSideBar(int size, TQWidget *parent, const char *name, Qt::Orientation orientation /*=Qt::Vertical*/) :
KileSideBar::KileSideBar(int size, TQWidget *parent, const char *name, TQt::Orientation orientation /*=TQt::Vertical*/) :
TQFrame(parent, name),
m_nTabs(0),
m_nCurrent(0),
@ -45,13 +45,13 @@ KileSideBar::KileSideBar(int size, TQWidget *parent, const char *name, Qt::Orien
KileMultiTabBar::KileMultiTabBarMode tabbarori = KileMultiTabBar::Horizontal;
KileMultiTabBar::KileMultiTabBarPosition tabbarpos = KileMultiTabBar::Top;
if ( orientation == Qt::Horizontal )
if ( orientation == TQt::Horizontal )
{
layout = new TQVBoxLayout(this);
tabbarori = KileMultiTabBar::Horizontal;
tabbarpos = KileMultiTabBar::Top;
}
else if ( orientation == Qt::Vertical )
else if ( orientation == TQt::Vertical )
{
layout = new TQHBoxLayout(this);
tabbarori = KileMultiTabBar::Vertical;
@ -67,7 +67,7 @@ KileSideBar::KileSideBar(int size, TQWidget *parent, const char *name, Qt::Orien
m_tabBar->setStyle(KileMultiTabBar::KDEV3);
#endif
if ( orientation == Qt::Horizontal )
if ( orientation == TQt::Horizontal )
{
setMinimumHeight(m_tabBar->height());
m_nMinSize = m_tabBar->height();
@ -75,7 +75,7 @@ KileSideBar::KileSideBar(int size, TQWidget *parent, const char *name, Qt::Orien
layout->add(m_tabBar);
layout->add(m_tabStack);
}
else if ( orientation == Qt::Vertical )
else if ( orientation == TQt::Vertical )
{
setMinimumWidth(m_tabBar->width());
m_nMinSize = m_tabBar->width();
@ -239,7 +239,7 @@ void KileSideBar::switchToTab(int id)
}
KileBottomBar::KileBottomBar(int size, TQWidget *parent, const char *name) :
KileSideBar(size, parent, name, Qt::Horizontal)
KileSideBar(size, parent, name, TQt::Horizontal)
{}
void KileBottomBar::shrink()

@ -34,7 +34,7 @@ class KileSideBar : public TQFrame
public:
KileSideBar(int size, TQWidget *parent = 0, const char *name = 0, Qt::Orientation orientation = Qt::Vertical);
KileSideBar(int size, TQWidget *parent = 0, const char *name = 0, TQt::Orientation orientation = TQt::Vertical);
~KileSideBar();
int addTab(TQWidget *tab, const TQPixmap &pic, const TQString &text = TQString());

@ -33,7 +33,7 @@ KileWidgetStatistics::KileWidgetStatistics( TQWidget* parent, const char* name,
// characters groupbox
TQGroupBox *chargroup = new TQGroupBox( i18n("Characters"),parent);
chargroup->setColumnLayout(0, Qt::Vertical );
chargroup->setColumnLayout(0, TQt::Vertical );
chargroup->layout()->setSpacing( 6 );
chargroup->layout()->setMargin( 11 );
chargrouplayout = new TQGridLayout( chargroup->layout() );
@ -67,7 +67,7 @@ KileWidgetStatistics::KileWidgetStatistics( TQWidget* parent, const char* name,
// string groupbox
TQGroupBox *stringgroup = new TQGroupBox( i18n("Strings"),parent);
stringgroup->setColumnLayout(0, Qt::Vertical );
stringgroup->setColumnLayout(0, TQt::Vertical );
stringgroup->layout()->setSpacing( 6 );
stringgroup->layout()->setMargin( 11 );
stringgrouplayout = new TQGridLayout( stringgroup->layout() );

@ -42,7 +42,7 @@ MathEnvironmentDialog::MathEnvironmentDialog(TQWidget *parent, TDEConfig *config
// environment groupbox
TQButtonGroup *envgroup = new TQButtonGroup( i18n("Environment"),page);
envgroup->setColumnLayout(0, Qt::Vertical );
envgroup->setColumnLayout(0, TQt::Vertical );
envgroup->layout()->setSpacing( 6 );
envgroup->layout()->setMargin( 11 );

@ -38,7 +38,7 @@ KileWidgetPreviewConfig::KileWidgetPreviewConfig(TDEConfig *config, KileTool::Qu
TQGroupBox *groupbox = new TQGroupBox( i18n("Quick Preview in a separate window"), this, "groupbox" );
groupbox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, groupbox->sizePolicy().hasHeightForWidth() ) );
groupbox->setColumnLayout(0, Qt::Vertical );
groupbox->setColumnLayout(0, TQt::Vertical );
groupbox->layout()->setSpacing( 6 );
groupbox->layout()->setMargin( 11 );
TQGridLayout *groupboxLayout = new TQGridLayout( groupbox->layout() );
@ -53,7 +53,7 @@ KileWidgetPreviewConfig::KileWidgetPreviewConfig(TDEConfig *config, KileTool::Qu
groupboxLayout->setColStretch(3,1);
TQGroupBox *gbResolution = new TQGroupBox( i18n("Quick Preview in bottom bar"), this, "gbresolution" );
gbResolution->setColumnLayout(0, Qt::Vertical );
gbResolution->setColumnLayout(0, TQt::Vertical );
gbResolution->layout()->setSpacing( 6 );
gbResolution->layout()->setMargin( 11 );
TQGridLayout *resLayout = new TQGridLayout( gbResolution->layout() );
@ -96,7 +96,7 @@ KileWidgetPreviewConfig::KileWidgetPreviewConfig(TDEConfig *config, KileTool::Qu
resLayout->setColStretch(5,1);
m_gbPreview = new TQGroupBox( i18n("Properties"), this, "gbpreview" );
m_gbPreview->setColumnLayout(0, Qt::Vertical );
m_gbPreview->setColumnLayout(0, TQt::Vertical );
m_gbPreview->layout()->setSpacing( 6 );
m_gbPreview->layout()->setMargin( 11 );
TQGridLayout *previewLayout = new TQGridLayout( m_gbPreview->layout() );

@ -230,7 +230,7 @@ void SymbolView::contentsMousePressEvent(TQMouseEvent *e)
int count;
bool math=false, bracket=false;
if( (e->button() & Qt::LeftButton) == Qt::LeftButton && ( item = findItem( e->pos() ) ) )
if( (e->button() & TQt::LeftButton) == TQt::LeftButton && ( item = findItem( e->pos() ) ) )
{
bracket = (e->state() & TQt::ControlButton) == TQt::ControlButton;
math = (e->state() & TQt::ShiftButton) == TQt::ShiftButton;

@ -197,7 +197,7 @@ void TabCellFrame::drawContents(TQPainter *p)
void TabCellFrame::mousePressEvent(TQMouseEvent *event)
{
if ( event->button() != Qt::LeftButton )
if ( event->button() != TQt::LeftButton )
return;
int x = event->x();
@ -260,7 +260,7 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data,
// font group
TQGroupBox *fontgroup = new TQGroupBox( i18n("Font"),page);
fontgroup->setColumnLayout(0, Qt::Vertical );
fontgroup->setColumnLayout(0, TQt::Vertical );
fontgroup->layout()->setSpacing( 6 );
fontgroup->layout()->setMargin( 11 );
@ -274,7 +274,7 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data,
// color group
TQGroupBox *colorgroup = new TQGroupBox( i18n("Color"),page);
colorgroup->setColumnLayout(0, Qt::Vertical );
colorgroup->setColumnLayout(0, TQt::Vertical );
colorgroup->layout()->setSpacing( 6 );
colorgroup->layout()->setMargin( 11 );
@ -292,7 +292,7 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data,
// alignment group
TQButtonGroup *aligngroup = new TQButtonGroup( i18n("Alignment"),page);
aligngroup->setColumnLayout(0, Qt::Vertical );
aligngroup->setColumnLayout(0, TQt::Vertical );
aligngroup->layout()->setSpacing( 6 );
aligngroup->layout()->setMargin( 11 );
@ -308,7 +308,7 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data,
// frame group
TQGroupBox *framegroup = new TQGroupBox( i18n("Frame"),page);
framegroup->setColumnLayout(0, Qt::Vertical );
framegroup->setColumnLayout(0, TQt::Vertical );
framegroup->layout()->setSpacing( 6 );
framegroup->layout()->setMargin( 11 );
@ -349,7 +349,7 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data,
// preamble group
TQGroupBox *preamblegroup = new TQGroupBox( i18n("Preamble"),page);
preamblegroup->setColumnLayout(0, Qt::Vertical );
preamblegroup->setColumnLayout(0, TQt::Vertical );
preamblegroup->layout()->setSpacing( 6 );
preamblegroup->layout()->setMargin( 11 );
@ -367,7 +367,7 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data,
// header group
TQGroupBox *headergroup = new TQGroupBox( i18n("Alignment"),page);
headergroup->setColumnLayout(0, Qt::Vertical );
headergroup->setColumnLayout(0, TQt::Vertical );
headergroup->layout()->setSpacing( 6 );
headergroup->layout()->setMargin( 11 );
@ -742,7 +742,7 @@ bool TabularTable::eventFilter(TQObject *o, TQEvent *e)
if ( e->type() == TQEvent::MouseButtonPress )
{
TQMouseEvent *me = TQT_TQMOUSEEVENT(e);
if ( me->button() == Qt::RightButton )
if ( me->button() == TQt::RightButton )
{
if ( o == horizontalHeader() )
{
@ -1849,7 +1849,7 @@ TabularDialog::TabularDialog(TQWidget *parent, TDEConfig *config, KileDocument::
// environment group
TQButtonGroup *group = new TQButtonGroup( i18n("Environment"),page);
group->setColumnLayout(0, Qt::Vertical );
group->setColumnLayout(0, TQt::Vertical );
group->layout()->setSpacing( 4 );
group->layout()->setMargin( 11 );

@ -70,7 +70,7 @@ TexDocDialog::TexDocDialog(TQWidget *parent, const char *name)
// groupbox
TQGroupBox *groupbox = new TQGroupBox( i18n("Search"), page, "groupbox" );
groupbox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, groupbox->sizePolicy().hasHeightForWidth() ) );
groupbox->setColumnLayout(0, Qt::Vertical );
groupbox->setColumnLayout(0, TQt::Vertical );
groupbox->layout()->setSpacing( 6 );
groupbox->layout()->setMargin( 11 );
TQGridLayout *groupboxLayout = new TQGridLayout( groupbox->layout() );

Loading…
Cancel
Save