summaryrefslogtreecommitdiffstats
path: root/akregator/src/tabwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /akregator/src/tabwidget.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/tabwidget.cpp')
-rw-r--r--akregator/src/tabwidget.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/akregator/src/tabwidget.cpp b/akregator/src/tabwidget.cpp
index 3f86fa1d1..7ae02ba9f 100644
--- a/akregator/src/tabwidget.cpp
+++ b/akregator/src/tabwidget.cpp
@@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
#include "tabwidget.h"
@@ -63,8 +63,8 @@ class TabWidget::TabWidgetPrivate
TQToolButton* tabsClose;
};
-TabWidget::TabWidget(TQWidget * parent, const char *name)
- :KTabWidget(parent, name), d(new TabWidgetPrivate)
+TabWidget::TabWidget(TQWidget * tqparent, const char *name)
+ :KTabWidget(tqparent, name), d(new TabWidgetPrivate)
{
d->CurrentMaxLength = 30;
d->currentItem = 0;
@@ -183,7 +183,7 @@ uint TabWidget::tabBarWidthForMaxChars( uint maxLength )
if ( tab->iconSet() )
iw = tab->iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal ).width() + 4;
- x += ( tabBar()->style().sizeFromContents( TQStyle::CT_TabBarTab, this, TQSize( QMAX( lw + hframe + iw, TQApplication::globalStrut().width() ), 0 ), TQStyleOption( tab ) ) ).width();
+ x += ( tabBar()->style().sizeFromContents( TQStyle::CT_TabBarTab, this, TQSize( TQMAX( lw + hframe + iw, TQApplication::globalStrut().width() ), 0 ), TQStyleOption( tab ) ) ).width();
}
return x;
}
@@ -200,9 +200,9 @@ void TabWidget::setTitle( const TQString &title , TQWidget* sender)
uint lcw=0, rcw=0;
int tabBarHeight = tabBar()->tqsizeHint().height();
if ( cornerWidget( TopLeft ) && cornerWidget( TopLeft )->isVisible() )
- lcw = QMAX( cornerWidget( TopLeft )->width(), tabBarHeight );
+ lcw = TQMAX( cornerWidget( TopLeft )->width(), tabBarHeight );
if ( cornerWidget( TopRight ) && cornerWidget( TopRight )->isVisible() )
- rcw = QMAX( cornerWidget( TopRight )->width(), tabBarHeight );
+ rcw = TQMAX( cornerWidget( TopRight )->width(), tabBarHeight );
uint maxTabBarWidth = width() - lcw - rcw;
uint newMaxLength=30;
@@ -288,8 +288,8 @@ void TabWidget::slotCopyLinkAddress()
url = view->part()->url();
- kapp->clipboard()->setText(url.prettyURL(), QClipboard::Selection);
- kapp->clipboard()->setText(url.prettyURL(), QClipboard::Clipboard);
+ kapp->clipboard()->setText(url.prettyURL(), TQClipboard::Selection);
+ kapp->clipboard()->setText(url.prettyURL(), TQClipboard::Clipboard);
}
void TabWidget::slotCloseTab()
@@ -298,8 +298,8 @@ void TabWidget::slotCloseTab()
d->currentItem = currentPage();
if (indexOf(d->currentItem) == 0)
return;
- if (d->frames.find(d->currentItem) != NULL)
- removeFrame(d->frames.find(d->currentItem));
+ if (d->frames.tqfind(d->currentItem) != NULL)
+ removeFrame(d->frames.tqfind(d->currentItem));
delete d->currentItem;
d->currentItem = 0;
}
@@ -323,8 +323,8 @@ void TabWidget::initiateDrag(int tab)
void TabWidget::slotCloseRequest(TQWidget* widget)
{
- if (d->frames.find(widget) != NULL)
- removeFrame(d->frames.find(widget));
+ if (d->frames.tqfind(widget) != NULL)
+ removeFrame(d->frames.tqfind(widget));
}
} // namespace Akregator