diff options
Diffstat (limited to 'src/kile/tabulardialog.cpp')
-rw-r--r-- | src/kile/tabulardialog.cpp | 216 |
1 files changed, 108 insertions, 108 deletions
diff --git a/src/kile/tabulardialog.cpp b/src/kile/tabulardialog.cpp index 56c9870..4bb76c0 100644 --- a/src/kile/tabulardialog.cpp +++ b/src/kile/tabulardialog.cpp @@ -19,7 +19,7 @@ #include "tabulardialog.h" #include "codecompletion.h" -#include <layout.h> +#include <tqlayout.h> #include <tqlabel.h> #include <tqstyle.h> #include <tqframe.h> @@ -261,56 +261,56 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data, // font group TQGroupBox *fontgroup = new TQGroupBox( i18n("Font"),page); fontgroup->setColumnLayout(0, Qt::Vertical ); - fontgroup->layout()->setSpacing( 6 ); - fontgroup->layout()->setMargin( 11 ); + fontgroup->tqlayout()->setSpacing( 6 ); + fontgroup->tqlayout()->setMargin( 11 ); m_cbBold = new TQCheckBox(i18n("Bold"),fontgroup); m_cbItalic = new TQCheckBox(i18n("Italic"),fontgroup); - TQVBoxLayout *fontgrouplayout = new TQVBoxLayout( fontgroup->layout() ); - fontgrouplayout->setAlignment( TQt::AlignTop ); - fontgrouplayout->addWidget( m_cbBold ); - fontgrouplayout->addWidget( m_cbItalic ); + TQVBoxLayout *fontgrouptqlayout = new TQVBoxLayout( fontgroup->tqlayout() ); + fontgrouptqlayout->tqsetAlignment( TQt::AlignTop ); + fontgrouptqlayout->addWidget( m_cbBold ); + fontgrouptqlayout->addWidget( m_cbItalic ); // color group TQGroupBox *colorgroup = new TQGroupBox( i18n("Color"),page); colorgroup->setColumnLayout(0, Qt::Vertical ); - colorgroup->layout()->setSpacing( 6 ); - colorgroup->layout()->setMargin( 11 ); + colorgroup->tqlayout()->setSpacing( 6 ); + colorgroup->tqlayout()->setMargin( 11 ); TQLabel *label1 = new TQLabel(i18n("Background:"),colorgroup); TQLabel *label2 = new TQLabel(i18n("Textcolor:"),colorgroup); m_ccBgcolor = new KColorCombo(colorgroup); m_ccTextcolor = new KColorCombo(colorgroup); - TQGridLayout *colorgrouplayout = new TQGridLayout( colorgroup->layout() ); - colorgrouplayout->setAlignment( TQt::AlignTop ); - colorgrouplayout->addWidget( label1,0,0 ); - colorgrouplayout->addWidget( label2,1,0 ); - colorgrouplayout->addWidget( m_ccBgcolor,0,1 ); - colorgrouplayout->addWidget( m_ccTextcolor,1,1 ); + TQGridLayout *colorgrouptqlayout = new TQGridLayout( colorgroup->tqlayout() ); + colorgrouptqlayout->tqsetAlignment( TQt::AlignTop ); + colorgrouptqlayout->addWidget( label1,0,0 ); + colorgrouptqlayout->addWidget( label2,1,0 ); + colorgrouptqlayout->addWidget( m_ccBgcolor,0,1 ); + colorgrouptqlayout->addWidget( m_ccTextcolor,1,1 ); - // alignment group + // tqalignment group TQButtonGroup *aligngroup = new TQButtonGroup( i18n("Alignment"),page); aligngroup->setColumnLayout(0, Qt::Vertical ); - aligngroup->layout()->setSpacing( 6 ); - aligngroup->layout()->setMargin( 11 ); + aligngroup->tqlayout()->setSpacing( 6 ); + aligngroup->tqlayout()->setMargin( 11 ); m_rbAlignleft = new TQRadioButton(i18n("Left"),aligngroup); m_rbAligncenter = new TQRadioButton(i18n("Center"),aligngroup); m_rbAlignright = new TQRadioButton(i18n("Right"),aligngroup); - TQVBoxLayout *aligngrouplayout = new TQVBoxLayout( aligngroup->layout() ); - aligngrouplayout->setAlignment( TQt::AlignTop ); - aligngrouplayout->addWidget( m_rbAlignleft ); - aligngrouplayout->addWidget( m_rbAligncenter ); - aligngrouplayout->addWidget( m_rbAlignright ); + TQVBoxLayout *aligngrouptqlayout = new TQVBoxLayout( aligngroup->tqlayout() ); + aligngrouptqlayout->tqsetAlignment( TQt::AlignTop ); + aligngrouptqlayout->addWidget( m_rbAlignleft ); + aligngrouptqlayout->addWidget( m_rbAligncenter ); + aligngrouptqlayout->addWidget( m_rbAlignright ); // frame group TQGroupBox *framegroup = new TQGroupBox( i18n("Frame"),page); framegroup->setColumnLayout(0, Qt::Vertical ); - framegroup->layout()->setSpacing( 6 ); - framegroup->layout()->setMargin( 11 ); + framegroup->tqlayout()->setSpacing( 6 ); + framegroup->tqlayout()->setMargin( 11 ); TQLabel *label3 = new TQLabel(i18n("Standard:"),framegroup); TQLabel *label4 = new TQLabel(i18n("User defined:"),framegroup); @@ -339,45 +339,45 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data, borderbox->addWidget(m_cellframe); borderbox->addStretch(1); - TQVBoxLayout *framegrouplayout = new TQVBoxLayout( framegroup->layout() ); - framegrouplayout->setAlignment( TQt::AlignTop ); - framegrouplayout->addWidget( label3 ); - framegrouplayout->addWidget( lineframe ); - framegrouplayout->addSpacing( 10 ); - framegrouplayout->addWidget( label4 ); - framegrouplayout->addWidget( borderframe ); + TQVBoxLayout *framegrouptqlayout = new TQVBoxLayout( framegroup->tqlayout() ); + framegrouptqlayout->tqsetAlignment( TQt::AlignTop ); + framegrouptqlayout->addWidget( label3 ); + framegrouptqlayout->addWidget( lineframe ); + framegrouptqlayout->addSpacing( 10 ); + framegrouptqlayout->addWidget( label4 ); + framegrouptqlayout->addWidget( borderframe ); // preamble group TQGroupBox *preamblegroup = new TQGroupBox( i18n("Preamble"),page); preamblegroup->setColumnLayout(0, Qt::Vertical ); - preamblegroup->layout()->setSpacing( 6 ); - preamblegroup->layout()->setMargin( 11 ); + preamblegroup->tqlayout()->setSpacing( 6 ); + preamblegroup->tqlayout()->setMargin( 11 ); m_cbPre = new TQCheckBox(i18n(">{decl}: insert before"),preamblegroup,"cb_pre"); m_cbPost = new TQCheckBox(i18n("<{decl}: insert after"),preamblegroup,"cb_post"); m_cbAt = new TQCheckBox(i18n("@{decl}: suppress space"),preamblegroup,"cb_at"); m_cbSep = new TQCheckBox(i18n("!{decl}: do not suppress space"),preamblegroup,"cb_sep"); - TQVBoxLayout *preamblegrouplayout = new TQVBoxLayout( preamblegroup->layout() ); - preamblegrouplayout->setAlignment( TQt::AlignTop ); - preamblegrouplayout->addWidget( m_cbPre ); - preamblegrouplayout->addWidget( m_cbPost ); - preamblegrouplayout->addWidget( m_cbAt ); - preamblegrouplayout->addWidget( m_cbSep ); + TQVBoxLayout *preamblegrouptqlayout = new TQVBoxLayout( preamblegroup->tqlayout() ); + preamblegrouptqlayout->tqsetAlignment( TQt::AlignTop ); + preamblegrouptqlayout->addWidget( m_cbPre ); + preamblegrouptqlayout->addWidget( m_cbPost ); + preamblegrouptqlayout->addWidget( m_cbAt ); + preamblegrouptqlayout->addWidget( m_cbSep ); // header group TQGroupBox *headergroup = new TQGroupBox( i18n("Alignment"),page); headergroup->setColumnLayout(0, Qt::Vertical ); - headergroup->layout()->setSpacing( 6 ); - headergroup->layout()->setMargin( 11 ); + headergroup->tqlayout()->setSpacing( 6 ); + headergroup->tqlayout()->setMargin( 11 ); m_coHeader = new TQComboBox(headergroup); - TQVBoxLayout *headergrouplayout = new TQVBoxLayout( headergroup->layout() ); - headergrouplayout->setAlignment( TQt::AlignTop ); - headergrouplayout->addStretch(1); - headergrouplayout->addWidget(m_coHeader); - headergrouplayout->addStretch(1); + TQVBoxLayout *headergrouptqlayout = new TQVBoxLayout( headergroup->tqlayout() ); + headergrouptqlayout->tqsetAlignment( TQt::AlignTop ); + headergrouptqlayout->addStretch(1); + headergrouptqlayout->addWidget(m_coHeader); + headergrouptqlayout->addStretch(1); // add widgets if ( m_header ) @@ -401,7 +401,7 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data, grid->setRowStretch(3,1); // init some special widgets - int buttonheight = m_pbFrame1->sizeHint().height(); + int buttonheight = m_pbFrame1->tqsizeHint().height(); m_pbFrame1->setFixedSize(buttonheight,buttonheight); m_pbFrame2->setFixedSize(buttonheight,buttonheight); m_pbFrame3->setFixedSize(buttonheight,buttonheight); @@ -412,7 +412,7 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data, m_pbFrame3->setPixmap( TQPixmap(const_cast<const char**>(tb_border_xpm)) ); m_pbFrame4->setPixmap( TQPixmap(const_cast<const char**>(all_border_xpm)) ); - borderframe->setFixedWidth(lineframe->sizeHint().width()); + borderframe->setFixedWidth(lineframe->tqsizeHint().width()); setButtonText(User1,"Re&set"); if ( m_header ) @@ -442,9 +442,9 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data, connect(m_cbSep,TQT_SIGNAL(clicked()),this, TQT_SLOT(slotSeparatorClicked())); } - TQWhatsThis::add(m_coHeader,i18n("Column or cell alignment.")); + TQWhatsThis::add(m_coHeader,i18n("Column or cell tqalignment.")); TQWhatsThis::add(m_cbBold,i18n("Set bold font series.")); - TQWhatsThis::add(m_cbItalic,i18n("Set italic font shape.")); + TQWhatsThis::add(m_cbItalic,i18n("Set italic font tqshape.")); TQWhatsThis::add(m_rbAlignleft,i18n("The text will be aligned at the left border of the cell.")); TQWhatsThis::add(m_rbAligncenter,i18n("The text will be centered.")); TQWhatsThis::add(m_rbAlignright,i18n("The text will be aligned at the right border of the cell.")); @@ -460,7 +460,7 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data, TQWhatsThis::add(m_pbFrame4,i18n("Set all border lines.")); TQWhatsThis::add(m_cellframe,i18n("Set user defined border lines. A mouse click into one of the four border ranges will set or clear this special border line.")); - setButtonWhatsThis(User1,i18n("Reset all settings to standard cell attributes: left alignment, normal font series and shape, white background color, black text color, no border lines.")); + setButtonWhatsThis(User1,i18n("Reset all settings to standard cell attributes: left tqalignment, normal font series and tqshape, white background color, black text color, no border lines.")); } ////////////////////////////// read data ////////////////////////////// @@ -634,7 +634,7 @@ TabularItem::TabularItem(TQTable* table, const TabularCell::Data &data) m_data = data; } -int TabularItem::alignment() const +int TabularItem::tqalignment() const { return m_data.align | TQt::AlignVCenter; } @@ -668,7 +668,7 @@ void TabularItem::paint(TQPainter *p,const TQColorGroup &cg,const TQRect &cr,boo p->setFont(f); } - p->drawText( 2,0,w-4,h,alignment(), text() ); + p->drawText( 2,0,w-4,h,tqalignment(), text() ); } //END TabularItem @@ -824,7 +824,7 @@ void TabularTable::setText(int row,int col,const TQString &text) updateCell(row,col); } -void TabularTable::setAlignment(int row,int col,int align) +void TabularTable::tqsetAlignment(int row,int col,int align) { TabularItem *cellitem = cellItem(row,col); cellitem->m_data.align = align; @@ -980,7 +980,7 @@ void TabularTable::setCellrangeAlignment(int x1,int y1,int x2,int y2,int align) for (int row=y1; row<=y2; ++row ) { if ( singlecell || !isMulticolumn(row,col) ) - setAlignment(row,col,align); + tqsetAlignment(row,col,align); } } } @@ -1045,11 +1045,11 @@ void TabularTable::paintCell( TQPainter *p, int row, int col, TQPen pen( p->pen() ); TQColor gridlinecolor; - int gridColor = tqstyle().styleHint( TQStyle::SH_Table_GridLineColor, this ); + int gridColor = tqstyle().tqstyleHint( TQStyle::SH_Table_GridLineColor, this ); if (gridColor != -1) { const TQPalette &pal = palette(); - if ( cg != colorGroup() && cg != pal.disabled() && cg != pal.inactive() ) + if ( cg != tqcolorGroup() && cg != pal.disabled() && cg != pal.inactive() ) gridlinecolor = cg.mid(); // p->setPen(cg.mid()); else gridlinecolor = (TQRgb)gridColor; // p->setPen((TQRgb)gridColor); @@ -1119,7 +1119,7 @@ TQPopupMenu *TabularTable::createPopupMenu() void TabularTable::insertPopupAlign(TQPopupMenu *popup,bool header) { - // alignment + // tqalignment int align = 0; //calculate @@ -1850,8 +1850,8 @@ TabularDialog::TabularDialog(TQWidget *parent, KConfig *config, KileDocument::La // environment group TQButtonGroup *group = new TQButtonGroup( i18n("Environment"),page); group->setColumnLayout(0, Qt::Vertical ); - group->layout()->setSpacing( 4 ); - group->layout()->setMargin( 11 ); + group->tqlayout()->setSpacing( 4 ); + group->tqlayout()->setMargin( 11 ); TQLabel *label1 = new TQLabel(i18n("&Name:"),group); TQLabel *label2 = new TQLabel(i18n("&Parameter:"),group); @@ -1867,26 +1867,26 @@ TabularDialog::TabularDialog(TQWidget *parent, KConfig *config, KileDocument::La m_cbCenter = new TQCheckBox(i18n("C&enter"),group); m_cbBullets = new TQCheckBox(i18n("Insert &bullets"),group); - TQGridLayout *grouplayout = new TQGridLayout( group->layout() ); - grouplayout->setAlignment( TQt::AlignTop ); - grouplayout->setColStretch(5,1); - grouplayout->addWidget( label1, 0,0 ); - grouplayout->addWidget( label2, 1,0 ); - grouplayout->addWidget( m_coEnvironment, 0,1 ); - grouplayout->addWidget( m_coParameter, 1,1 ); - grouplayout->setColSpacing(2,24); - grouplayout->addWidget( label3, 0,3 ); - grouplayout->addWidget( label4, 1,3 ); - grouplayout->addWidget( m_spRows, 0,4 ); - grouplayout->addWidget( m_spCols, 1,4 ); - grouplayout->setRowSpacing(2,8); - - grouplayout->addMultiCellWidget( m_cbWarning, 3,3,0,4, TQt::AlignLeft ); - - grouplayout->addMultiCellWidget( m_cbStarred, 4,4,0,1, TQt::AlignLeft ); - grouplayout->addMultiCellWidget( m_cbBooktabs, 5,5,0,1, TQt::AlignLeft ); - grouplayout->addMultiCellWidget( m_cbCenter, 4,4,3,4, TQt::AlignLeft ); - grouplayout->addMultiCellWidget( m_cbBullets, 5,5,3,4, TQt::AlignLeft ); + TQGridLayout *grouptqlayout = new TQGridLayout( group->tqlayout() ); + grouptqlayout->tqsetAlignment( TQt::AlignTop ); + grouptqlayout->setColStretch(5,1); + grouptqlayout->addWidget( label1, 0,0 ); + grouptqlayout->addWidget( label2, 1,0 ); + grouptqlayout->addWidget( m_coEnvironment, 0,1 ); + grouptqlayout->addWidget( m_coParameter, 1,1 ); + grouptqlayout->setColSpacing(2,24); + grouptqlayout->addWidget( label3, 0,3 ); + grouptqlayout->addWidget( label4, 1,3 ); + grouptqlayout->addWidget( m_spRows, 0,4 ); + grouptqlayout->addWidget( m_spCols, 1,4 ); + grouptqlayout->setRowSpacing(2,8); + + grouptqlayout->addMultiCellWidget( m_cbWarning, 3,3,0,4, TQt::AlignLeft ); + + grouptqlayout->addMultiCellWidget( m_cbStarred, 4,4,0,1, TQt::AlignLeft ); + grouptqlayout->addMultiCellWidget( m_cbBooktabs, 5,5,0,1, TQt::AlignLeft ); + grouptqlayout->addMultiCellWidget( m_cbCenter, 4,4,3,4, TQt::AlignLeft ); + grouptqlayout->addMultiCellWidget( m_cbBullets, 5,5,3,4, TQt::AlignLeft ); // add widgets vbox->addWidget( m_table); @@ -1901,7 +1901,7 @@ TabularDialog::TabularDialog(TQWidget *parent, KConfig *config, KileDocument::La label4->setBuddy(m_spCols); // init widgets - m_table->setMinimumHeight( m_table->sizeHint().height()-3 ); + m_table->setMinimumHeight( m_table->tqsizeHint().height()-3 ); m_spRows->setValue(3); m_spCols->setValue(3); m_cbCenter->setChecked(true); @@ -1915,7 +1915,7 @@ TabularDialog::TabularDialog(TQWidget *parent, KConfig *config, KileDocument::La m_cols = m_spCols->value(); m_table->setFocus(); - resize(sizeHint().width(),sizeHint().height()+50); + resize(tqsizeHint().width(),tqsizeHint().height()+50); // signals and slots connect( m_coEnvironment, TQT_SIGNAL(activated(const TQString &)), @@ -1924,7 +1924,7 @@ TabularDialog::TabularDialog(TQWidget *parent, KConfig *config, KileDocument::La connect( m_spCols, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotColValueChanged(int))); TQWhatsThis::add(m_table,i18n("Input data. When you press Enter, the cursor will move to the cell right of the current cell. A click with the right mouse button on a cell or a range of cells will open a popup menu, where you can edit attributes, clear attributes, delete text or define multicolumn cells.")); - TQWhatsThis::add(m_table->horizontalHeader(),i18n("Current layout of the preamble. A click with the right mouse button will open a popup menu, where you can edit some attributes of all cells, which belong to the selected columns.")); + TQWhatsThis::add(m_table->horizontalHeader(),i18n("Current tqlayout of the preamble. A click with the right mouse button will open a popup menu, where you can edit some attributes of all cells, which belong to the selected columns.")); TQWhatsThis::add(m_table->verticalHeader(),i18n("A click with the right mouse button will open a popup menu, where you can edit some attributes of all cells, which belong to the selected rows.")); TQWhatsThis::add(m_coEnvironment,i18n("Choose an environment.")); TQWhatsThis::add(m_coParameter,i18n("Optional parameter for the chosen environment.")); @@ -2137,13 +2137,13 @@ TQStringList TabularDialog::sortColorTable(TQMap<TQString,char> &colors) sred = convertColor(r); sgreen = convertColor(g); sblue = convertColor(b); - s = TQString("{rgb}{%1,%2,%3}").arg(sred).arg(sgreen).arg(sblue); + s = TQString("{rgb}{%1,%2,%3}").tqarg(sred).tqarg(sgreen).tqarg(sblue); } else { - s = TQString("{gray}{%1}").arg(convertColor(r)); + s = TQString("{gray}{%1}").tqarg(convertColor(r)); } - list << TQString("\\definecolor{tc%1}%2").arg(it.data()).arg(s); + list << TQString("\\definecolor{tc%1}%2").tqarg(it.data()).tqarg(s); } list.sort(); @@ -2236,21 +2236,21 @@ void TabularDialog::slotOk() if ( colinfo[col].bgcolor != whitename ) { TQChar color = defineColor(colinfo[col].bgcolor,colortable,colorchar); - colorcommand += TQString("\\columncolor{tc%1}").arg(color); + colorcommand += TQString("\\columncolor{tc%1}").tqarg(color); pkgColortbl = true; } if ( colinfo[col].textcolor != blackname ) { TQChar color = defineColor(colinfo[col].textcolor,colortable,colorchar); - colorcommand += TQString("\\color{tc%1}").arg(color); + colorcommand += TQString("\\color{tc%1}").tqarg(color); pkgColor = true; } if ( ! colorcommand.isEmpty() ) { if ( s.find('>') >= 0 ) - s = s.replace(">{}",TQString(">{%1}").arg(colorcommand)); + s = s.replace(">{}",TQString(">{%1}").tqarg(colorcommand)); else - preamble += TQString(">{%1}").arg(colorcommand); + preamble += TQString(">{%1}").tqarg(colorcommand); pkgArray = true; } @@ -2285,7 +2285,7 @@ void TabularDialog::slotOk() if ( bgcolor != whitename ) { TQChar color = defineColor(cnt.nameBgcolor,colortable,colorchar); - textline += TQString("\\rowcolor{tc%1}\n").arg(color); + textline += TQString("\\rowcolor{tc%1}\n").tqarg(color); pkgColortbl = true; } @@ -2297,11 +2297,11 @@ void TabularDialog::slotOk() { // check for multicolumn and initialize string parameter int colspan = cellitem->colSpan(); - s1 = ( colspan > 1 ) ? TQString("%1").arg(colspan) : TQString(); + s1 = ( colspan > 1 ) ? TQString("%1").tqarg(colspan) : TQString(); s2 = s3 = TQString(); // Now look, if this cell(s) must be defined as multicolumn, because - // colspan is greater than 1, or the left vline, bgcolor or alignment + // colspan is greater than 1, or the left vline, bgcolor or tqalignment // is different from the preamble bool useMulticolumn = ( ( colspan > 1 ) || @@ -2325,10 +2325,10 @@ void TabularDialog::slotOk() if ( cellitem->m_data.bgcolor.name() != whitename ) { TQChar color = defineColor(cellitem->m_data.bgcolor.name(),colortable,colorchar); - s2 += TQString(">{\\columncolor{tc%1}}").arg(color); + s2 += TQString(">{\\columncolor{tc%1}}").tqarg(color); pkgColortbl = true; } - // alignment + // tqalignment //if ( cellitem->m_data.align!=colinfo[col].align ) { switch ( cellitem->m_data.align ) { @@ -2350,13 +2350,13 @@ void TabularDialog::slotOk() } if ( colinfo[col].italic != (cellitem->m_data.font & TabularCell::cfItalic) ) { - s3 += "\\itshape"; + s3 += "\\ittqshape"; } if ( colinfo[col].textcolor != cellitem->m_data.textcolor.name() ) { TQChar color = defineColor(cellitem->m_data.textcolor.name(),colortable,colorchar); - s3 += TQString("\\color{tc%1}").arg(color); + s3 += TQString("\\color{tc%1}").tqarg(color); pkgColor = true; } if ( ! s3.isEmpty() ) @@ -2379,7 +2379,7 @@ void TabularDialog::slotOk() // build the whole cell entry if ( useMulticolumn ) { - textline += TQString("\\mc{%1}{%2}{%3}").arg(colspan).arg(s2).arg(s3); + textline += TQString("\\mc{%1}{%2}{%3}").tqarg(colspan).tqarg(s2).tqarg(s3); multicolumn = true; } else @@ -2445,7 +2445,7 @@ void TabularDialog::slotOk() // build the tag to insert if ( m_cbCenter->isChecked() ) - m_td.tagBegin = TQString("\\begin{%1}\n").arg(centername); + m_td.tagBegin = TQString("\\begin{%1}\n").tqarg(centername); else if ( group ) m_td.tagBegin = "{% \n"; else @@ -2468,22 +2468,22 @@ void TabularDialog::slotOk() } // add environment command - m_td.tagBegin += TQString("\\begin{%1}").arg(envname); + m_td.tagBegin += TQString("\\begin{%1}").tqarg(envname); // add width for starred versions if ( m_cbStarred->isChecked() ) - m_td.tagBegin += TQString("{%1}").arg(bullet); - // add optional alignment parameter + m_td.tagBegin += TQString("{%1}").tqarg(bullet); + // add optional tqalignment parameter TQString envparameter = ( m_coParameter->isEnabled() ) ? m_coParameter->currentText() : TQString(); if ( ! envparameter.isEmpty() ) - m_td.tagBegin += TQString("[%1]").arg(envparameter); + m_td.tagBegin += TQString("[%1]").tqarg(envparameter); // add preamble - m_td.tagBegin += TQString("{%1}").arg(preamble); + m_td.tagBegin += TQString("{%1}").tqarg(preamble); m_td.tagBegin += getEol(0,true) + '\n'; // close environment - m_td.tagEnd += TQString("\\end{%1}\n").arg(envname); + m_td.tagEnd += TQString("\\end{%1}\n").tqarg(envname); if ( m_cbCenter->isChecked() ) - m_td.tagEnd += TQString("\\end{%1}\n").arg(centername); + m_td.tagEnd += TQString("\\end{%1}\n").tqarg(centername); else if ( group ) m_td.tagEnd += "}\n"; @@ -2543,7 +2543,7 @@ TQString TabularDialog::getEol(int row, bool top) { TQString cmd = ( booktabs ) ? "cmidrule" : "cline"; for ( uint i=0; i<lines.list.count(); i+=2 ) - s += TQString("\\%1{%2-%3}").arg(cmd).arg(lines.list[i]+1).arg(lines.list[i+1]+1); + s += TQString("\\%1{%2-%3}").tqarg(cmd).tqarg(lines.list[i]+1).tqarg(lines.list[i+1]+1); } return s; |