summaryrefslogtreecommitdiffstats
path: root/koshell
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
commit94844816550ad672ccfcdc25659c625546239998 (patch)
treee35fc60fd736c645d59f6408af032774ad8023d3 /koshell
parent2a811c38c74c03648ecf857e566c44483cbad706 (diff)
downloadkoffice-94844816550ad672ccfcdc25659c625546239998.tar.gz
koffice-94844816550ad672ccfcdc25659c625546239998.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'koshell')
-rw-r--r--koshell/iconsidepane.cpp20
-rw-r--r--koshell/iconsidepane.h10
-rw-r--r--koshell/koshell_shell.cc10
3 files changed, 20 insertions, 20 deletions
diff --git a/koshell/iconsidepane.cpp b/koshell/iconsidepane.cpp
index 93bbb6c42..7f3371e48 100644
--- a/koshell/iconsidepane.cpp
+++ b/koshell/iconsidepane.cpp
@@ -126,13 +126,13 @@ void EntryItem::paint( TQPainter *p )
TQBrush brush;
if ( isCurrent() || isSelected() || mPaintActive )
- brush = box->tqcolorGroup().brush( TQColorGroup::Highlight );
+ brush = box->colorGroup().brush( TQColorGroup::Highlight );
else
- brush = TQBrush(box->tqcolorGroup().highlight().light( 115 ));
+ brush = TQBrush(box->colorGroup().highlight().light( 115 ));
p->fillRect( 1, 0, w - 2, h - 1, brush );
TQPen pen = p->pen();
TQPen oldPen = pen;
- pen.setColor( box->tqcolorGroup().mid() );
+ pen.setColor( box->colorGroup().mid() );
p->setPen( pen );
p->drawPoint( 1, 0 );
@@ -149,9 +149,9 @@ void EntryItem::paint( TQPainter *p )
p->drawPixmap( x, y, mPixmap );
}
- TQColor shadowColor = listBox()->tqcolorGroup().background().dark(115);
+ TQColor shadowColor = listBox()->colorGroup().background().dark(115);
if ( isCurrent() || isSelected() ) {
- p->setPen( box->tqcolorGroup().highlightedText() );
+ p->setPen( box->colorGroup().highlightedText() );
}
if ( !text().isEmpty() && navigator()->showText() ) {
@@ -176,13 +176,13 @@ void EntryItem::paint( TQPainter *p )
}
if ( isCurrent() || isSelected() || mHasHover ) {
- p->setPen( box->tqcolorGroup().highlight().dark(115) );
+ p->setPen( box->colorGroup().highlight().dark(115) );
p->drawText( x + ( TQApplication::reverseLayout() ? -1 : 1),
y + 1, text() );
- p->setPen( box->tqcolorGroup().highlightedText() );
+ p->setPen( box->colorGroup().highlightedText() );
}
else
- p->setPen( box->tqcolorGroup().text() );
+ p->setPen( box->colorGroup().text() );
p->drawText( x, y, text() );
}
@@ -283,7 +283,7 @@ void Navigator::slotExecuted( TQListBoxItem *item )
executedItem = item;
}
-TQSize Navigator::tqsizeHint() const
+TQSize Navigator::sizeHint() const
{
return TQSize( mMinWidth, 100 );
}
@@ -409,7 +409,7 @@ IconSidePane::IconSidePane(TQWidget *parent, const char *name )
m_buttongroup->setExclusive(true);
m_buttongroup->hide();
mWidgetstack = new TQWidgetStack(this);
- mWidgetstack->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
+ mWidgetstack->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
// setup the popup menu
mShowIcons = KoShellSettings::sidePaneShowIcons();
diff --git a/koshell/iconsidepane.h b/koshell/iconsidepane.h
index e0c4f7f03..34678919b 100644
--- a/koshell/iconsidepane.h
+++ b/koshell/iconsidepane.h
@@ -26,7 +26,7 @@
#include <klistbox.h>
#include <tqbuttongroup.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqtooltip.h>
#include <tqvbox.h>
#include <tqwidgetstack.h>
@@ -100,12 +100,12 @@ class EntryItemToolTip : public TQToolTip
if ( !mListBox ) return;
TQListBoxItem* item = mListBox->itemAt( p );
if ( !item ) return;
- const TQRect tqitemRect = mListBox->tqitemRect( item );
- if ( !tqitemRect.isValid() ) return;
+ const TQRect itemRect = mListBox->itemRect( item );
+ if ( !itemRect.isValid() ) return;
const EntryItem *entryItem = static_cast<EntryItem*>( item );
TQString tipStr = entryItem->text();
- tip( tqitemRect, tipStr );
+ tip( itemRect, tipStr );
}
private:
TQListBox* mListBox;
@@ -123,7 +123,7 @@ class Navigator : public KListBox
int insertItem(const TQString &_text, const TQString &_pix);
- TQSize tqsizeHint() const;
+ TQSize sizeHint() const;
IconViewMode viewMode();
bool showText();
bool showIcons();
diff --git a/koshell/koshell_shell.cc b/koshell/koshell_shell.cc
index 9639ae716..27bec9d65 100644
--- a/koshell/koshell_shell.cc
+++ b/koshell/koshell_shell.cc
@@ -66,7 +66,7 @@ KoShellWindow::KoShellWindow()
// Setup the sidebar
m_pSidebar = new IconSidePane( m_pLayout );
- m_pSidebar->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Maximum,
+ m_pSidebar->setSizePolicy( TQSizePolicy( TQSizePolicy::Maximum,
TQSizePolicy::Preferred ) );
m_pSidebar->setActionCollection( actionCollection() );
m_grpFile = m_pSidebar->insertGroup(i18n("Components"), false, TQT_TQOBJECT(this), TQT_SLOT( slotSidebar_Part(int )));
@@ -75,7 +75,7 @@ KoShellWindow::KoShellWindow()
// Setup the tabbar
m_pFrame = new KTabWidget( m_pLayout );
- m_pFrame->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum,
+ m_pFrame->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum,
TQSizePolicy::Preferred ) );
m_pFrame->setTabPosition( KTabWidget::Bottom );
@@ -158,7 +158,7 @@ bool KoShellWindow::openDocumentInternal( const KURL &url, KoDocument* )
/*if (!KIO::NetAccess::exists(url,true,0) )
{
- KMessageBox::error(0L, i18n("The file %1 doesn't exist.").tqarg(url.url()) );
+ KMessageBox::error(0L, i18n("The file %1 doesn't exist.").arg(url.url()) );
recentAction()->removeURL(url); //remove the file from the recent-opened-file-list
saveRecentFiles();
return false;
@@ -175,7 +175,7 @@ bool KoShellWindow::openDocumentInternal( const KURL &url, KoDocument* )
KoFilterManager *manager = new KoFilterManager( url.path() );
TQCString mimetype; // an empty mimetype means, that the "nearest"
- KoFilter::ConversiontqStatus status = manager->exp0rt( tmpFile->name(), mimetype ); // KOffice part will be chosen
+ KoFilter::ConversionStatus status = manager->exp0rt( tmpFile->name(), mimetype ); // KOffice part will be chosen
delete manager;
if ( status != KoFilter::OK || mimetype.isEmpty() ) {
@@ -503,7 +503,7 @@ void KoShellWindow::switchToPage( TQValueList<Page>::Iterator it )
v->setFocus();
partSpecificHelpAction->setEnabled(true);
- partSpecificHelpAction->setText(i18n("%1 Handbook").tqarg((*m_activePage).m_pDoc->instance()->aboutData()->programName()));
+ partSpecificHelpAction->setText(i18n("%1 Handbook").arg((*m_activePage).m_pDoc->instance()->aboutData()->programName()));
}
void KoShellWindow::slotFileNew()