summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoStyleManager.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
commitc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch)
tree1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /lib/kotext/KoStyleManager.cpp
parent94844816550ad672ccfcdc25659c625546239998 (diff)
downloadkoffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz
koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'lib/kotext/KoStyleManager.cpp')
-rw-r--r--lib/kotext/KoStyleManager.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kotext/KoStyleManager.cpp b/lib/kotext/KoStyleManager.cpp
index 871b8f98..e5a7dbfa 100644
--- a/lib/kotext/KoStyleManager.cpp
+++ b/lib/kotext/KoStyleManager.cpp
@@ -33,7 +33,7 @@
#include <tqlabel.h>
#include <tqcombobox.h>
#include <tqcheckbox.h>
-#include <layout.h>
+#include <tqlayout.h>
/******************************************************************/
/* Class: KoStyleManager */
@@ -86,7 +86,7 @@ KoStyleManager::KoStyleManager( TQWidget *_parent, KoUnit::Unit unit,
newTab = new KoStyleParagTab( m_tabs );
KoParagLayoutWidget *decorations = new KoParagDecorationWidget( newTab );
- decorations->layout()->setMargin(KDialog::marginHint());
+ decorations->tqlayout()->setMargin(KDialog::marginHint());
newTab->setWidget( decorations );
addTab( newTab );
@@ -122,7 +122,7 @@ void KoStyleManager::addTab( KoStyleManagerTab * tab )
{
m_tabsList.append( tab );
m_tabs->insertTab( tab, tab->tabName() );
- tab->layout()->activate();
+ tab->tqlayout()->activate();
}
void KoStyleManager::setupWidget(const KoStyleCollection& styleCollection)
@@ -185,15 +185,15 @@ void KoStyleManager::addGeneralTab( int flags ) {
tabLayout->setMargin( KDialog::marginHint() );
m_nameString = new TQLineEdit( tab );
- m_nameString->resize(m_nameString->sizeHint() );
+ m_nameString->resize(m_nameString->tqsizeHint() );
connect( m_nameString, TQT_SIGNAL( textChanged( const TQString &) ), this, TQT_SLOT( renameStyle(const TQString &) ) );
tabLayout->addWidget( m_nameString, 0, 1 );
TQLabel *nameLabel = new TQLabel( tab );
nameLabel->setText( i18n( "Name:" ) );
- nameLabel->resize(nameLabel->sizeHint());
- nameLabel->setAlignment( AlignRight | AlignVCenter );
+ nameLabel->resize(nameLabel->tqsizeHint());
+ nameLabel->tqsetAlignment( AlignRight | AlignVCenter );
tabLayout->addWidget( nameLabel, 0, 0 );
@@ -203,7 +203,7 @@ void KoStyleManager::addGeneralTab( int flags ) {
TQLabel *nextStyleLabel = new TQLabel( tab );
nextStyleLabel->setText( i18n( "Next style:" ) );
- nextStyleLabel->setAlignment( AlignRight | AlignVCenter );
+ nextStyleLabel->tqsetAlignment( AlignRight | AlignVCenter );
tabLayout->addWidget( nextStyleLabel, 1, 0 );
@@ -212,7 +212,7 @@ void KoStyleManager::addGeneralTab( int flags ) {
TQLabel *inheritStyleLabel = new TQLabel( tab );
inheritStyleLabel->setText( i18n( "Inherit style:" ) );
- inheritStyleLabel->setAlignment( AlignRight | AlignVCenter );
+ inheritStyleLabel->tqsetAlignment( AlignRight | AlignVCenter );
tabLayout->addWidget( inheritStyleLabel, 2, 0 );
@@ -345,7 +345,7 @@ void KoStyleManager::updateGUI() {
void KoStyleManager::updatePreview()
{
d->preview->setStyle(m_currentStyle);
- d->preview->repaint(true);
+ d->preview->tqrepaint(true);
}
void KoStyleManager::save() {
@@ -408,7 +408,7 @@ TQString KoStyleManager::generateUniqueName()
void KoStyleManager::addStyle() {
save();
- TQString str = i18n( "New Style Template (%1)" ).arg(numStyles++);
+ TQString str = i18n( "New Style Template (%1)" ).tqarg(numStyles++);
if ( m_currentStyle )
{
m_currentStyle = new KoParagStyle( *m_currentStyle ); // Create a new style, initializing from the current one