summaryrefslogtreecommitdiffstats
path: root/kig
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:20:25 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:20:25 -0600
commitba6b21419810544e0c8666969d21d72161d9084c (patch)
tree1850cd178553cd190ab7194f3b318e23ce7c98c6 /kig
parent746abe84406ed1ec1a8dc68f29ce0ab8322ccc80 (diff)
downloadtdeedu-ba6b21419810544e0c8666969d21d72161d9084c.tar.gz
tdeedu-ba6b21419810544e0c8666969d21d72161d9084c.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'kig')
-rw-r--r--kig/kig/kig_view.cpp10
-rw-r--r--kig/kig/kig_view.h2
-rw-r--r--kig/modes/edittypebase.ui8
-rw-r--r--kig/modes/linkslabel.cpp24
-rw-r--r--kig/modes/typesdialogbase.ui8
-rw-r--r--kig/objects/text_type.cc2
6 files changed, 27 insertions, 27 deletions
diff --git a/kig/kig/kig_view.cpp b/kig/kig/kig_view.cpp
index 24f507d9..f9d70f29 100644
--- a/kig/kig/kig_view.cpp
+++ b/kig/kig/kig_view.cpp
@@ -290,13 +290,13 @@ KigView::KigView( KigPart* part,
TQWidget* parent,
const char* name )
: TQWidget( parent, name ),
- mtqlayout( 0 ), mrightscroll( 0 ), mbottomscroll( 0 ),
+ mlayout( 0 ), mrightscroll( 0 ), mbottomscroll( 0 ),
mupdatingscrollbars( false ),
mrealwidget( 0 ), mpart( part )
{
connect( part, TQT_SIGNAL( recenterScreen() ), this, TQT_SLOT( slotInternalRecenterScreen() ) );
- mtqlayout = new TQGridLayout( this, 2, 2 );
+ mlayout = new TQGridLayout( this, 2, 2 );
mrightscroll = new TQScrollBar(Qt::Vertical, this, "Right Scrollbar" );
// TODO: make this configurable...
mrightscroll->setTracking( true );
@@ -310,9 +310,9 @@ KigView::KigView( KigPart* part,
connect( mbottomscroll, TQT_SIGNAL( sliderReleased() ),
this, TQT_SLOT( updateScrollBars() ) );
mrealwidget = new KigWidget( part, this, this, "Kig Widget", fullscreen );
- mtqlayout->addWidget( mbottomscroll, 1, 0 );
- mtqlayout->addWidget( mrealwidget, 0, 0 );
- mtqlayout->addWidget( mrightscroll, 0, 1 );
+ mlayout->addWidget( mbottomscroll, 1, 0 );
+ mlayout->addWidget( mrealwidget, 0, 0 );
+ mlayout->addWidget( mrightscroll, 0, 1 );
resize( sizeHint() );
mrealwidget->recenterScreen();
diff --git a/kig/kig/kig_view.h b/kig/kig/kig_view.h
index e574d6f0..28cc9947 100644
--- a/kig/kig/kig_view.h
+++ b/kig/kig/kig_view.h
@@ -230,7 +230,7 @@ class KigView
Q_OBJECT
TQ_OBJECT
- TQGridLayout* mtqlayout;
+ TQGridLayout* mlayout;
TQScrollBar* mrightscroll;
TQScrollBar* mbottomscroll;
diff --git a/kig/modes/edittypebase.ui b/kig/modes/edittypebase.ui
index 91ff6df4..e0af9850 100644
--- a/kig/modes/edittypebase.ui
+++ b/kig/modes/edittypebase.ui
@@ -43,7 +43,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout8</cstring>
+ <cstring>layout8</cstring>
</property>
<hbox>
<property name="name">
@@ -51,7 +51,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout8</cstring>
+ <cstring>layout8</cstring>
</property>
<vbox>
<property name="name">
@@ -125,7 +125,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout23</cstring>
+ <cstring>layout23</cstring>
</property>
<vbox>
<property name="name">
@@ -179,7 +179,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout24</cstring>
+ <cstring>layout24</cstring>
</property>
<hbox>
<property name="name">
diff --git a/kig/modes/linkslabel.cpp b/kig/modes/linkslabel.cpp
index 693c165a..9d37d840 100644
--- a/kig/modes/linkslabel.cpp
+++ b/kig/modes/linkslabel.cpp
@@ -33,7 +33,7 @@ using namespace std;
class LinksLabel::Private
{
public:
- TQHBoxLayout* tqlayout;
+ TQHBoxLayout* layout;
std::vector<TQLabel*> labels;
std::vector<KURLLabel*> urllabels;
};
@@ -42,22 +42,22 @@ LinksLabel::LinksLabel( TQWidget* parent, const char* name )
: TQWidget( parent, name )
{
p = new Private;
- p->tqlayout = new TQHBoxLayout( this );
+ p->layout = new TQHBoxLayout( this );
TQLabel* l = new TQLabel( TQString::fromUtf8( "Dit is een " ), this );
p->labels.push_back( l );
- p->tqlayout->addWidget( l );
+ p->layout->addWidget( l );
KURLLabel* u = new KURLLabel( TQString::fromUtf8( "http://www.kde.org/" ),
TQString::fromUtf8( "url"), this );
p->urllabels.push_back( u );
- p->tqlayout->addWidget( u );
+ p->layout->addWidget( u );
l = new TQLabel( TQString::fromUtf8( " !" ), this );
p->labels.push_back( l );
- p->tqlayout->addWidget(l );
+ p->layout->addWidget(l );
- p->tqlayout->activate();
+ p->layout->activate();
}
LinksLabel::~LinksLabel()
@@ -99,8 +99,8 @@ void LinksLabel::applyEdit( LinksLabelEditBuf& buf )
p->urllabels.clear();
p->labels.clear();
- delete p->tqlayout;
- p->tqlayout = new TQHBoxLayout( this );
+ delete p->layout;
+ p->layout = new TQHBoxLayout( this );
for ( LinksLabelEditBuf::vec::iterator i = buf.data.begin(); i != buf.data.end(); ++i )
{
@@ -111,7 +111,7 @@ void LinksLabel::applyEdit( LinksLabelEditBuf& buf )
KURLLabel* l = new KURLLabel( TQString::fromUtf8( "http://edu.kde.org/kig" ),
i->second, this );
p->urllabels.push_back( l );
- p->tqlayout->addWidget( l );
+ p->layout->addWidget( l );
connect( l, TQT_SIGNAL( leftClickedURL() ), TQT_SLOT( urlClicked() ) );
}
else
@@ -119,15 +119,15 @@ void LinksLabel::applyEdit( LinksLabelEditBuf& buf )
// we need a normal label...
TQLabel* l = new TQLabel( i->second, this );
p->labels.push_back( l );
- p->tqlayout->addWidget( l );
+ p->layout->addWidget( l );
};
};
TQSpacerItem* spacer = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- p->tqlayout->addItem( spacer );
+ p->layout->addItem( spacer );
- p->tqlayout->activate();
+ p->layout->activate();
std::for_each( p->urllabels.begin(), p->urllabels.end(), mem_fun( &TQWidget::show ) );
std::for_each( p->labels.begin(), p->labels.end(), mem_fun( &TQWidget::show ) );
diff --git a/kig/modes/typesdialogbase.ui b/kig/modes/typesdialogbase.ui
index 347eb831..90216532 100644
--- a/kig/modes/typesdialogbase.ui
+++ b/kig/modes/typesdialogbase.ui
@@ -30,7 +30,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout1</cstring>
+ <cstring>layout1</cstring>
</property>
<hbox>
<property name="name">
@@ -90,7 +90,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@@ -98,7 +98,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<vbox>
<property name="name">
@@ -147,7 +147,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<vbox>
<property name="name">
diff --git a/kig/objects/text_type.cc b/kig/objects/text_type.cc
index 09e84c30..425094c2 100644
--- a/kig/objects/text_type.cc
+++ b/kig/objects/text_type.cc
@@ -144,7 +144,7 @@ void TextType::executeAction( int i, ObjectHolder& o, ObjectTypeCalcer& c,
if ( i == 0 )
{
- TQClipboard* cb = kapp->tqclipboard();
+ TQClipboard* cb = kapp->clipboard();
// copy the text into the clipboard
const TextImp* ti = static_cast<const TextImp*>( c.imp() );