summaryrefslogtreecommitdiffstats
path: root/kicker/kicker
diff options
context:
space:
mode:
Diffstat (limited to 'kicker/kicker')
-rw-r--r--kicker/kicker/buttons/bookmarksbutton.h2
-rw-r--r--kicker/kicker/buttons/browserbutton.cpp2
-rw-r--r--kicker/kicker/buttons/browserbutton.h2
-rw-r--r--kicker/kicker/buttons/desktopbutton.cpp2
-rw-r--r--kicker/kicker/buttons/kbutton.h2
-rw-r--r--kicker/kicker/buttons/knewbutton.cpp16
-rw-r--r--kicker/kicker/buttons/knewbutton.h4
-rw-r--r--kicker/kicker/buttons/nonkdeappbutton.cpp2
-rw-r--r--kicker/kicker/buttons/nonkdeappbutton.h2
-rw-r--r--kicker/kicker/buttons/servicemenubutton.h2
-rw-r--r--kicker/kicker/buttons/windowlistbutton.h2
-rw-r--r--kicker/kicker/core/applethandle.cpp36
-rw-r--r--kicker/kicker/core/applethandle.h14
-rw-r--r--kicker/kicker/core/container_applet.cpp36
-rw-r--r--kicker/kicker/core/container_applet.h6
-rw-r--r--kicker/kicker/core/container_base.cpp14
-rw-r--r--kicker/kicker/core/container_base.h12
-rw-r--r--kicker/kicker/core/container_button.cpp12
-rw-r--r--kicker/kicker/core/container_button.h4
-rw-r--r--kicker/kicker/core/container_extension.cpp222
-rw-r--r--kicker/kicker/core/container_extension.h12
-rw-r--r--kicker/kicker/core/containerarea.cpp150
-rw-r--r--kicker/kicker/core/containerarea.h8
-rw-r--r--kicker/kicker/core/containerarealayout.cpp76
-rw-r--r--kicker/kicker/core/containerarealayout.h28
-rw-r--r--kicker/kicker/core/extensionSettings.kcfg2
-rw-r--r--kicker/kicker/core/extensionmanager.cpp34
-rw-r--r--kicker/kicker/core/extensionmanager.h2
-rw-r--r--kicker/kicker/core/kmenubase.ui26
-rw-r--r--kicker/kicker/core/menumanager.cpp12
-rw-r--r--kicker/kicker/core/panelextension.cpp8
-rw-r--r--kicker/kicker/core/panelextension.h2
-rw-r--r--kicker/kicker/core/userrectsel.cpp6
-rw-r--r--kicker/kicker/core/userrectsel.h10
-rw-r--r--kicker/kicker/interfaces/kickoff-search-plugin.h2
-rw-r--r--kicker/kicker/kicker-3.4-reverseLayout.cpp2
-rw-r--r--kicker/kicker/plugins/beaglesearch.cpp2
-rw-r--r--kicker/kicker/plugins/kickoff-beagle-plugin.cpp2
-rw-r--r--kicker/kicker/ui/addapplet.cpp16
-rw-r--r--kicker/kicker/ui/addapplet_mnu.cpp4
-rw-r--r--kicker/kicker/ui/addappletvisualfeedback.cpp32
-rw-r--r--kicker/kicker/ui/addappletvisualfeedback.h2
-rw-r--r--kicker/kicker/ui/addbutton_mnu.cpp2
-rw-r--r--kicker/kicker/ui/addextension_mnu.cpp2
-rw-r--r--kicker/kicker/ui/appletitem.ui20
-rw-r--r--kicker/kicker/ui/appletop_mnu.cpp2
-rw-r--r--kicker/kicker/ui/appletview.ui12
-rw-r--r--kicker/kicker/ui/browser_mnu.cpp20
-rw-r--r--kicker/kicker/ui/clicklineedit.cpp8
-rw-r--r--kicker/kicker/ui/clicklineedit.h2
-rw-r--r--kicker/kicker/ui/exe_dlg.cpp6
-rw-r--r--kicker/kicker/ui/flipscrollview.cpp8
-rw-r--r--kicker/kicker/ui/hidebutton.cpp14
-rw-r--r--kicker/kicker/ui/itemview.cpp58
-rw-r--r--kicker/kicker/ui/itemview.h2
-rw-r--r--kicker/kicker/ui/k_mnu.cpp34
-rw-r--r--kicker/kicker/ui/k_mnu.h2
-rw-r--r--kicker/kicker/ui/k_mnu_stub.cpp6
-rw-r--r--kicker/kicker/ui/k_mnu_stub.h2
-rw-r--r--kicker/kicker/ui/k_new_mnu.cpp146
-rw-r--r--kicker/kicker/ui/k_new_mnu.h6
-rw-r--r--kicker/kicker/ui/kickoff_bar.cpp28
-rw-r--r--kicker/kicker/ui/kickoff_bar.h4
-rw-r--r--kicker/kicker/ui/kmenuitembase.ui20
-rw-r--r--kicker/kicker/ui/nonKDEButtonSettings.ui14
-rw-r--r--kicker/kicker/ui/popupmenutitle.h4
-rw-r--r--kicker/kicker/ui/removeapplet_mnu.cpp2
-rw-r--r--kicker/kicker/ui/removeextension_mnu.cpp2
-rw-r--r--kicker/kicker/ui/service_mnu.cpp38
69 files changed, 648 insertions, 648 deletions
diff --git a/kicker/kicker/buttons/bookmarksbutton.h b/kicker/kicker/buttons/bookmarksbutton.h
index d150688f0..3d8518519 100644
--- a/kicker/kicker/buttons/bookmarksbutton.h
+++ b/kicker/kicker/buttons/bookmarksbutton.h
@@ -32,7 +32,7 @@ class KActionCollection;
class KBookmarkOwner;
/**
- * Button that tqcontains a bookmark menu
+ * Button that contains a bookmark menu
*/
class BookmarksButton : public PanelPopupButton
{
diff --git a/kicker/kicker/buttons/browserbutton.cpp b/kicker/kicker/buttons/browserbutton.cpp
index 4a8c9a7af..2e2cb5a2d 100644
--- a/kicker/kicker/buttons/browserbutton.cpp
+++ b/kicker/kicker/buttons/browserbutton.cpp
@@ -103,7 +103,7 @@ void BrowserButton::dropEvent( TQDropEvent *ev )
{
KURL path ( topMenu->path() );
_menuTimer->stop();
- KFileItem item( path, TQString::tqfromLatin1( "inode/directory" ), KFileItem::Unknown );
+ KFileItem item( path, TQString::fromLatin1( "inode/directory" ), KFileItem::Unknown );
KonqOperations::doDrop( &item, path, ev, this );
PanelButton::dropEvent(ev);
}
diff --git a/kicker/kicker/buttons/browserbutton.h b/kicker/kicker/buttons/browserbutton.h
index cd64b3539..bb08801d9 100644
--- a/kicker/kicker/buttons/browserbutton.h
+++ b/kicker/kicker/buttons/browserbutton.h
@@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class PanelBrowserMenu;
/**
- * Button that tqcontains a Browser directory menu
+ * Button that contains a Browser directory menu
*/
class BrowserButton : public PanelPopupButton
{
diff --git a/kicker/kicker/buttons/desktopbutton.cpp b/kicker/kicker/buttons/desktopbutton.cpp
index 71bcaa2e5..9f23741e5 100644
--- a/kicker/kicker/buttons/desktopbutton.cpp
+++ b/kicker/kicker/buttons/desktopbutton.cpp
@@ -77,7 +77,7 @@ void DesktopButton::dragEnterEvent( TQDragEnterEvent *ev )
void DesktopButton::dropEvent( TQDropEvent *ev )
{
KURL dPath ( KGlobalSettings::desktopPath() );
- KFileItem item( dPath, TQString::tqfromLatin1( "inode/directory" ), KFileItem::Unknown );
+ KFileItem item( dPath, TQString::fromLatin1( "inode/directory" ), KFileItem::Unknown );
KonqOperations::doDrop( &item, dPath, ev, this );
PanelButton::dropEvent(ev);
}
diff --git a/kicker/kicker/buttons/kbutton.h b/kicker/kicker/buttons/kbutton.h
index 469b0fab5..bf98e74f8 100644
--- a/kicker/kicker/buttons/kbutton.h
+++ b/kicker/kicker/buttons/kbutton.h
@@ -27,7 +27,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "panelbutton.h"
/**
- * Button that tqcontains the PanelKMenu and client menu manager.
+ * Button that contains the PanelKMenu and client menu manager.
*/
class KButton : public PanelPopupButton
{
diff --git a/kicker/kicker/buttons/knewbutton.cpp b/kicker/kicker/buttons/knewbutton.cpp
index a395b3cb6..9c9f438ac 100644
--- a/kicker/kicker/buttons/knewbutton.cpp
+++ b/kicker/kicker/buttons/knewbutton.cpp
@@ -70,7 +70,7 @@ KNewButton::KNewButton( TQWidget* parent )
m_movie = new TQMovie(locate("data", "kicker/pics/kmenu_basic.mng"));
m_movie->connectUpdate(this, TQT_SLOT(updateMovie()));
- m_movie->connecttqStatus(this, TQT_SLOT(slottqStatus(int)));
+ m_movie->connectStatus(this, TQT_SLOT(slotStatus(int)));
m_movie->connectResize(this, TQT_SLOT(slotSetSize(const TQSize&)));
TQApplication::desktop()->screen()->installEventFilter(this);
@@ -85,7 +85,7 @@ KNewButton::~KNewButton()
delete m_movie;
}
-void KNewButton::slottqStatus(int status)
+void KNewButton::slotStatus(int status)
{
if(status == TQMovie::EndOfLoop)
slotStopAnimation();
@@ -99,7 +99,7 @@ TQColor KNewButton::borderColor() const
QRgb rgb = img.pixel(orientation() == Qt::Horizontal ? img.width() - i - 1 :
i, 2);
- if (tqGreen(rgb) > 0x50)
+ if (qGreen(rgb) > 0x50)
return rgb;
}
@@ -151,7 +151,7 @@ void KNewButton::setPopupDirection(KPanelApplet::Direction d)
}
m_movie->connectUpdate(this, TQT_SLOT(updateMovie()));
- m_movie->connecttqStatus(this, TQT_SLOT(slottqStatus(int)));
+ m_movie->connectStatus(this, TQT_SLOT(slotStatus(int)));
m_movie->connectResize(this, TQT_SLOT(slotSetSize(const TQSize&)));
}
@@ -215,7 +215,7 @@ bool KNewButton::eventFilter(TQObject *o, TQEvent *e)
e->type() == TQEvent::MouseButtonDblClick )
{
TQMouseEvent *me = static_cast<TQMouseEvent *>(e);
- if (rect().tqcontains(mapFromGlobal(me->globalPos())))
+ if (rect().contains(mapFromGlobal(me->globalPos())))
{
if (m_pressedDuringPopup && m_popup && m_openTimer != -1
&& (me->button() & Qt::LeftButton) )
@@ -286,7 +286,7 @@ void KNewButton::drawEye()
}
m_active_pixmap = pixmap.xForm(matrix);
- tqrepaint(false);
+ repaint(false);
}
#undef eye_x
#undef eye_y
@@ -355,9 +355,9 @@ void KNewButton::mouseMoveEvent(TQMouseEvent* e)
{
KButton::mouseMoveEvent(e);
- m_mouseInside = m_sloppyRegion.tqcontains(e->pos());
+ m_mouseInside = m_sloppyRegion.contains(e->pos());
- if ( m_sloppyRegion.tqcontains(e->pos()))
+ if ( m_sloppyRegion.contains(e->pos()))
{
if (m_hoverTimer == -1 && KickerSettings::openOnHover())
m_hoverTimer = startTimer(kMax(200,TQApplication::doubleClickInterval()/2));
diff --git a/kicker/kicker/buttons/knewbutton.h b/kicker/kicker/buttons/knewbutton.h
index 8be1a8600..bcb8b8743 100644
--- a/kicker/kicker/buttons/knewbutton.h
+++ b/kicker/kicker/buttons/knewbutton.h
@@ -32,7 +32,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <tqpoint.h>
/**
- * Button that tqcontains the PanelKMenu and client menu manager.
+ * Button that contains the PanelKMenu and client menu manager.
*/
class KNewButton : public KButton
{
@@ -57,7 +57,7 @@ public:
virtual void setPopupDirection(KPanelApplet::Direction d);
private slots:
- void slottqStatus(int);
+ void slotStatus(int);
void slotSetSize(const TQSize&);
void slotStopAnimation();
void rewindMovie();
diff --git a/kicker/kicker/buttons/nonkdeappbutton.cpp b/kicker/kicker/buttons/nonkdeappbutton.cpp
index e91a06f37..29b7ddb2e 100644
--- a/kicker/kicker/buttons/nonkdeappbutton.cpp
+++ b/kicker/kicker/buttons/nonkdeappbutton.cpp
@@ -41,7 +41,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// our own definition
#include "nonkdeappbutton.h"
-// we include the "tqmoc" file so that the KDE build system knows to create it
+// we include the "moc" file so that the KDE build system knows to create it
#include "nonkdeappbutton.moc"
// this is one of the two constructors. gets called when creating a new button
diff --git a/kicker/kicker/buttons/nonkdeappbutton.h b/kicker/kicker/buttons/nonkdeappbutton.h
index 44cbb2f0d..217f2c22c 100644
--- a/kicker/kicker/buttons/nonkdeappbutton.h
+++ b/kicker/kicker/buttons/nonkdeappbutton.h
@@ -32,7 +32,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class PanelExeDialog;
/**
- * Button that tqcontains a non-KDE application
+ * Button that contains a non-KDE application
* subclass of PanelButton
*/
class NonKDEAppButton : public PanelButton
diff --git a/kicker/kicker/buttons/servicemenubutton.h b/kicker/kicker/buttons/servicemenubutton.h
index dda61dab6..0bd05b8ee 100644
--- a/kicker/kicker/buttons/servicemenubutton.h
+++ b/kicker/kicker/buttons/servicemenubutton.h
@@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class PanelServiceMenu;
/**
- * Button that tqcontains a Service menu
+ * Button that contains a Service menu
*/
class ServiceMenuButton : public PanelPopupButton
{
diff --git a/kicker/kicker/buttons/windowlistbutton.h b/kicker/kicker/buttons/windowlistbutton.h
index 19032083b..d8b57c62e 100644
--- a/kicker/kicker/buttons/windowlistbutton.h
+++ b/kicker/kicker/buttons/windowlistbutton.h
@@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class KWindowListMenu;
/**
- * Button that tqcontains a windowlist menu
+ * Button that contains a windowlist menu
*/
class WindowListButton : public PanelPopupButton
{
diff --git a/kicker/kicker/core/applethandle.cpp b/kicker/kicker/core/applethandle.cpp
index 5d4bb57f2..f5f398136 100644
--- a/kicker/kicker/core/applethandle.cpp
+++ b/kicker/kicker/core/applethandle.cpp
@@ -52,17 +52,17 @@ AppletHandle::AppletHandle(AppletContainer* parent)
{
setBackgroundOrigin(AncestorOrigin);
setMinimumSize(widthForHeight(0), heightForWidth(0));
- m_tqlayout = new TQBoxLayout(this, TQBoxLayout::BottomToTop, 0, 0);
+ m_layout = new TQBoxLayout(this, TQBoxLayout::BottomToTop, 0, 0);
m_dragBar = new AppletHandleDrag(this);
m_dragBar->installEventFilter(this);
- m_tqlayout->addWidget(m_dragBar);
+ m_layout->addWidget(m_dragBar);
if (kapp->authorizeKAction("kicker_rmb"))
{
m_menuButton = new AppletHandleButton( this );
m_menuButton->installEventFilter(this);
- m_tqlayout->addWidget(m_menuButton);
+ m_layout->addWidget(m_menuButton);
connect(m_menuButton, TQT_SIGNAL(pressed()),
this, TQT_SLOT(menuButtonPressed()));
@@ -75,14 +75,14 @@ AppletHandle::AppletHandle(AppletContainer* parent)
int AppletHandle::heightForWidth( int /* w */ ) const
{
- int size = style().tqpixelMetric(TQStyle::PM_DockWindowHandleExtent, this);
+ int size = style().pixelMetric(TQStyle::PM_DockWindowHandleExtent, this);
return size;
}
int AppletHandle::widthForHeight( int /* h */ ) const
{
- int size = style().tqpixelMetric(TQStyle::PM_DockWindowHandleExtent, this);
+ int size = style().pixelMetric(TQStyle::PM_DockWindowHandleExtent, this);
return size;
}
@@ -101,25 +101,25 @@ void AppletHandle::setPopupDirection(KPanelApplet::Direction d)
switch (m_popupDirection)
{
case KPanelApplet::Up:
- m_tqlayout->setDirection(TQBoxLayout::BottomToTop);
+ m_layout->setDirection(TQBoxLayout::BottomToTop);
a = Qt::UpArrow;
break;
case KPanelApplet::Down:
- m_tqlayout->setDirection(TQBoxLayout::TopToBottom);
+ m_layout->setDirection(TQBoxLayout::TopToBottom);
a = Qt::DownArrow;
break;
case KPanelApplet::Left:
- m_tqlayout->setDirection(TQBoxLayout::RightToLeft);
+ m_layout->setDirection(TQBoxLayout::RightToLeft);
a = Qt::LeftArrow;
break;
case KPanelApplet::Right:
- m_tqlayout->setDirection(TQBoxLayout::LeftToRight);
+ m_layout->setDirection(TQBoxLayout::LeftToRight);
a = Qt::RightArrow;
break;
}
m_menuButton->setArrowType(a);
- m_tqlayout->activate();
+ m_layout->activate();
}
void AppletHandle::resetLayout()
@@ -200,7 +200,7 @@ bool AppletHandle::eventFilter(TQObject *o, TQEvent *e)
// a hack for applets that have out-of-process
// elements (e.g the systray) so that the handle
// doesn't flicker when moving over those elements
- if (w->rect().tqcontains(w->mapFromGlobal(TQCursor::pos())))
+ if (w->rect().contains(w->mapFromGlobal(TQCursor::pos())))
{
nowDrawIt = true;
}
@@ -269,7 +269,7 @@ void AppletHandle::checkHandleHover()
{
if (!m_handleHoverTimer ||
(m_menuButton && m_menuButton->isOn()) ||
- m_applet->tqgeometry().tqcontains(m_applet->mapToParent(
+ m_applet->geometry().contains(m_applet->mapToParent(
m_applet->mapFromGlobal(TQCursor::pos()))))
{
return;
@@ -282,7 +282,7 @@ void AppletHandle::checkHandleHover()
bool AppletHandle::onMenuButton(const TQPoint& point) const
{
- return m_menuButton && (tqchildAt(mapFromGlobal(point)) == m_menuButton);
+ return m_menuButton && (childAt(mapFromGlobal(point)) == m_menuButton);
}
void AppletHandle::toggleMenuButtonOff()
@@ -308,9 +308,9 @@ AppletHandleDrag::AppletHandleDrag(AppletHandle* parent)
setBackgroundOrigin( AncestorOrigin );
}
-TQSize AppletHandleDrag::tqminimumSizeHint() const
+TQSize AppletHandleDrag::minimumSizeHint() const
{
- int wh = style().tqpixelMetric(TQStyle::PM_DockWindowHandleExtent, this);
+ int wh = style().pixelMetric(TQStyle::PM_DockWindowHandleExtent, this);
if (m_parent->orientation() == Horizontal)
{
@@ -368,7 +368,7 @@ void AppletHandleDrag::paintEvent(TQPaintEvent *)
TQRect r = rect();
style().drawPrimitive(TQStyle::PE_DockWindowHandle, &p, r,
- tqcolorGroup(), flags);
+ colorGroup(), flags);
}
else
{
@@ -382,9 +382,9 @@ AppletHandleButton::AppletHandleButton(AppletHandle *parent)
{
}
-TQSize AppletHandleButton::tqminimumSizeHint() const
+TQSize AppletHandleButton::minimumSizeHint() const
{
- int height = style().tqpixelMetric(TQStyle::PM_DockWindowHandleExtent, this);
+ int height = style().pixelMetric(TQStyle::PM_DockWindowHandleExtent, this);
int width = height;
if (m_parent->orientation() == Horizontal)
diff --git a/kicker/kicker/core/applethandle.h b/kicker/kicker/core/applethandle.h
index ad80e2ee6..5eff46717 100644
--- a/kicker/kicker/core/applethandle.h
+++ b/kicker/kicker/core/applethandle.h
@@ -76,7 +76,7 @@ class AppletHandle : public QWidget
private:
AppletContainer* m_applet;
- TQBoxLayout* m_tqlayout;
+ TQBoxLayout* m_layout;
AppletHandleDrag* m_dragBar;
AppletHandleButton* m_menuButton;
bool m_drawHandle;
@@ -92,9 +92,9 @@ class AppletHandleDrag : public QWidget
public:
AppletHandleDrag(AppletHandle* parent);
- TQSize tqminimumSizeHint() const;
- TQSize tqminimumSize() const { return tqminimumSizeHint(); }
- TQSize tqsizeHint() const { return tqminimumSize(); }
+ TQSize minimumSizeHint() const;
+ TQSize minimumSize() const { return minimumSizeHint(); }
+ TQSize sizeHint() const { return minimumSize(); }
TQSizePolicy sizePolicy() const;
protected:
@@ -113,9 +113,9 @@ class AppletHandleButton : public SimpleArrowButton
public:
AppletHandleButton(AppletHandle *parent);
- TQSize tqminimumSizeHint() const;
- TQSize tqminimumSize() const { return tqminimumSizeHint(); }
- TQSize tqsizeHint() const { return tqminimumSize(); }
+ TQSize minimumSizeHint() const;
+ TQSize minimumSize() const { return minimumSizeHint(); }
+ TQSize sizeHint() const { return minimumSize(); }
TQSizePolicy sizePolicy() const;
private:
diff --git a/kicker/kicker/core/container_applet.cpp b/kicker/kicker/core/container_applet.cpp
index 764c66846..77c6d1912 100644
--- a/kicker/kicker/core/container_applet.cpp
+++ b/kicker/kicker/core/container_applet.cpp
@@ -65,7 +65,7 @@ AppletContainer::AppletContainer(const AppletInfo& info,
TQString(info.library() + "container").latin1()),
_info(info),
_handle(0),
- _tqlayout(0),
+ _layout(0),
_type(KPanelApplet::Normal),
_widthForHeightHint(0),
_heightForWidthHint(0),
@@ -81,24 +81,24 @@ AppletContainer::AppletContainer(const AppletInfo& info,
if (orientation() == Horizontal)
{
- _tqlayout = new TQBoxLayout(this, TQBoxLayout::LeftToRight, 0, 0);
+ _layout = new TQBoxLayout(this, TQBoxLayout::LeftToRight, 0, 0);
}
else
{
- _tqlayout = new TQBoxLayout(this, TQBoxLayout::TopToBottom, 0, 0);
+ _layout = new TQBoxLayout(this, TQBoxLayout::TopToBottom, 0, 0);
}
- _tqlayout->setResizeMode( TQLayout::FreeResize );
+ _layout->setResizeMode( TQLayout::FreeResize );
- _tqlayout->addSpacing(APPLET_MARGIN);
+ _layout->addSpacing(APPLET_MARGIN);
_handle = new AppletHandle(this);
- _tqlayout->addWidget(_handle, 0);
+ _layout->addWidget(_handle, 0);
connect(_handle, TQT_SIGNAL(moveApplet(const TQPoint&)),
this, TQT_SLOT(moveApplet(const TQPoint&)));
connect(_handle, TQT_SIGNAL(showAppletMenu()), this, TQT_SLOT(showAppletMenu()));
- _tqlayout->addWidget(_appletframe, 1);
- _tqlayout->activate();
+ _layout->addWidget(_appletframe, 1);
+ _layout->activate();
_deskFile = info.desktopFile();
_configFile = info.configFile();
@@ -117,7 +117,7 @@ AppletContainer::AppletContainer(const AppletInfo& info,
_valid = true;
_applet->setPosition((KPanelApplet::Position)KickerLib::directionToPosition(popupDirection()));
- _applet->tqsetAlignment((KPanelApplet::Alignment)tqalignment());
+ _applet->setAlignment((KPanelApplet::Alignment)alignment());
_actions = _applet->actions();
_type = _applet->type();
@@ -193,14 +193,14 @@ void AppletContainer::resetLayout()
if (orientation() == Horizontal)
{
- _tqlayout->setDirection( TQBoxLayout::LeftToRight );
+ _layout->setDirection( TQBoxLayout::LeftToRight );
}
else
{
- _tqlayout->setDirection( TQBoxLayout::TopToBottom );
+ _layout->setDirection( TQBoxLayout::TopToBottom );
}
- _tqlayout->activate();
+ _layout->activate();
}
void AppletContainer::moveApplet( const TQPoint& moveOffset )
@@ -275,14 +275,14 @@ void AppletContainer::slotRemoved(KConfig* config)
void AppletContainer::activateWindow()
{
- KWin::forceActiveWindow(tqtopLevelWidget()->winId());
+ KWin::forceActiveWindow(topLevelWidget()->winId());
}
void AppletContainer::focusRequested(bool focus)
{
if (focus)
{
- KWin::forceActiveWindow(tqtopLevelWidget()->winId());
+ KWin::forceActiveWindow(topLevelWidget()->winId());
}
emit maintainFocus(focus);
@@ -295,7 +295,7 @@ void AppletContainer::doLoadConfiguration( KConfigGroup& config )
}
void AppletContainer::doSaveConfiguration( KConfigGroup& config,
- bool tqlayoutOnly ) const
+ bool layoutOnly ) const
{
// immutability is checked by ContainerBase
if (orientation() == Horizontal)
@@ -307,7 +307,7 @@ void AppletContainer::doSaveConfiguration( KConfigGroup& config,
config.writeEntry( "HeightForWidthHint", heightForWidth(width()) );
}
- if (!tqlayoutOnly)
+ if (!layoutOnly)
{
config.writePathEntry( "ConfigFile", _configFile );
config.writePathEntry( "DesktopFile", _deskFile );
@@ -354,14 +354,14 @@ void AppletContainer::slotDelayedDestruct()
delete this;
}
-void AppletContainer::tqalignmentChange(KPanelExtension::Alignment a)
+void AppletContainer::alignmentChange(KPanelExtension::Alignment a)
{
if (!_applet)
{
return;
}
- _applet->tqsetAlignment( (KPanelApplet::Alignment)a );
+ _applet->setAlignment( (KPanelApplet::Alignment)a );
}
int AppletContainer::widthForHeight(int h) const
diff --git a/kicker/kicker/core/container_applet.h b/kicker/kicker/core/container_applet.h
index 12f5c2c7d..019e52c96 100644
--- a/kicker/kicker/core/container_applet.h
+++ b/kicker/kicker/core/container_applet.h
@@ -83,15 +83,15 @@ public slots:
protected:
virtual void doLoadConfiguration( KConfigGroup& );
- virtual void doSaveConfiguration( KConfigGroup&, bool tqlayoutOnly ) const;
- virtual void tqalignmentChange(KPanelExtension::Alignment a);
+ virtual void doSaveConfiguration( KConfigGroup&, bool layoutOnly ) const;
+ virtual void alignmentChange(KPanelExtension::Alignment a);
virtual TQPopupMenu* createOpMenu();
AppletInfo _info;
AppletHandle *_handle;
TQHBox *_appletframe;
- TQBoxLayout *_tqlayout;
+ TQBoxLayout *_layout;
KPanelApplet::Type _type;
int _widthForHeightHint;
int _heightForWidthHint;
diff --git a/kicker/kicker/core/container_base.cpp b/kicker/kicker/core/container_base.cpp
index 957262b34..bb3d7d984 100644
--- a/kicker/kicker/core/container_base.cpp
+++ b/kicker/kicker/core/container_base.cpp
@@ -38,7 +38,7 @@ BaseContainer::BaseContainer( TQPopupMenu* appletOpMenu, TQWidget* parent, const
: TQWidget( parent, name )
, _dir(KPanelApplet::Up)
, _orient(Horizontal)
- , _tqalignment(KPanelExtension::LeftTop)
+ , _alignment(KPanelExtension::LeftTop)
, _fspace(0)
, _moveOffset(TQPoint(0,0))
, _aid(TQString::null)
@@ -77,7 +77,7 @@ void BaseContainer::loadConfiguration( KConfigGroup& group )
}
void BaseContainer::saveConfiguration(KConfigGroup& group,
- bool tqlayoutOnly) const
+ bool layoutOnly) const
{
if (isImmutable())
{
@@ -87,7 +87,7 @@ void BaseContainer::saveConfiguration(KConfigGroup& group,
// write positioning info
group.writeEntry( "FreeSpace2", freeSpace() );
// write type specific info
- doSaveConfiguration( group, tqlayoutOnly );
+ doSaveConfiguration( group, layoutOnly );
}
void BaseContainer::configure(KPanelExtension::Orientation o,
@@ -110,15 +110,15 @@ void BaseContainer::slotRemoved(KConfig* config)
config->sync();
}
-void BaseContainer::tqsetAlignment(KPanelExtension::Alignment a)
+void BaseContainer::setAlignment(KPanelExtension::Alignment a)
{
- if (_tqalignment == a)
+ if (_alignment == a)
{
return;
}
- _tqalignment = a;
- tqalignmentChange(a);
+ _alignment = a;
+ alignmentChange(a);
}
TQPopupMenu* BaseContainer::opMenu()
diff --git a/kicker/kicker/core/container_base.h b/kicker/kicker/core/container_base.h
index bdf965f8d..1c218b103 100644
--- a/kicker/kicker/core/container_base.h
+++ b/kicker/kicker/core/container_base.h
@@ -73,7 +73,7 @@ public:
KPanelApplet::Direction popupDirection() const { return _dir; }
KPanelExtension::Orientation orientation() const { return _orient; }
- KPanelExtension::Alignment tqalignment() const { return _tqalignment; }
+ KPanelExtension::Alignment alignment() const { return _alignment; }
virtual void setBackground() {}
@@ -81,7 +81,7 @@ public:
void clearOpMenu();
void loadConfiguration( KConfigGroup& );
- void saveConfiguration( KConfigGroup&, bool tqlayoutOnly = false ) const;
+ void saveConfiguration( KConfigGroup&, bool layoutOnly = false ) const;
void configure(KPanelExtension::Orientation, KPanelApplet::Direction);
virtual void configure() {}
@@ -97,7 +97,7 @@ public slots:
virtual void setPopupDirection(KPanelApplet::Direction d) { _dir = d; }
virtual void setOrientation(KPanelExtension::Orientation o) { _orient = o; }
- void tqsetAlignment(KPanelExtension::Alignment a);
+ void setAlignment(KPanelExtension::Alignment a);
signals:
void removeme(BaseContainer*);
@@ -110,15 +110,15 @@ signals:
protected:
virtual void doLoadConfiguration( KConfigGroup& ) {}
virtual void doSaveConfiguration( KConfigGroup&,
- bool /* tqlayoutOnly */ ) const {}
- virtual void tqalignmentChange(KPanelExtension::Alignment) {}
+ bool /* layoutOnly */ ) const {}
+ virtual void alignmentChange(KPanelExtension::Alignment) {}
virtual TQPopupMenu* createOpMenu() = 0;
TQPopupMenu *appletOpMenu() const { return _appletOpMnu; }
KPanelApplet::Direction _dir;
KPanelExtension::Orientation _orient;
- KPanelExtension::Alignment _tqalignment;
+ KPanelExtension::Alignment _alignment;
double _fspace;
TQPoint _moveOffset;
TQString _aid;
diff --git a/kicker/kicker/core/container_button.cpp b/kicker/kicker/core/container_button.cpp
index bd1045d84..bb0249843 100644
--- a/kicker/kicker/core/container_button.cpp
+++ b/kicker/kicker/core/container_button.cpp
@@ -60,7 +60,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ButtonContainer::ButtonContainer(TQPopupMenu* opMenu, TQWidget* parent)
: BaseContainer(opMenu, parent)
, _button(0)
- , _tqlayout(0)
+ , _layout(0)
, _oldpos(0,0)
{
setBackgroundOrigin(AncestorOrigin);
@@ -114,10 +114,10 @@ void ButtonContainer::configure()
}
}
-void ButtonContainer::doSaveConfiguration(KConfigGroup& config, bool tqlayoutOnly) const
+void ButtonContainer::doSaveConfiguration(KConfigGroup& config, bool layoutOnly) const
{
// immutability is checked by ContainerBase
- if (_button && !tqlayoutOnly)
+ if (_button && !layoutOnly)
{
_button->saveConfig(config);
}
@@ -145,12 +145,12 @@ void ButtonContainer::embedButton(PanelButton* b)
{
if (!b) return;
- delete _tqlayout;
- _tqlayout = new TQVBoxLayout(this);
+ delete _layout;
+ _layout = new TQVBoxLayout(this);
_button = b;
_button->installEventFilter(this);
- _tqlayout->add(_button);
+ _layout->add(_button);
connect(_button, TQT_SIGNAL(requestSave()), TQT_SIGNAL(requestSave()));
connect(_button, TQT_SIGNAL(hideme(bool)), TQT_SLOT(hideRequested(bool)));
connect(_button, TQT_SIGNAL(removeme()), TQT_SLOT(removeRequested()));
diff --git a/kicker/kicker/core/container_button.h b/kicker/kicker/core/container_button.h
index 7050f9cb6..78b4d4ab1 100644
--- a/kicker/kicker/core/container_button.h
+++ b/kicker/kicker/core/container_button.h
@@ -68,14 +68,14 @@ protected slots:
void dragButton(const TQPixmap icon);
protected:
- virtual void doSaveConfiguration( KConfigGroup&, bool tqlayoutOnly ) const;
+ virtual void doSaveConfiguration( KConfigGroup&, bool layoutOnly ) const;
void embedButton(PanelButton* p);
TQPopupMenu* createOpMenu();
void checkImmutability(const KConfigGroup&);
protected:
PanelButton *_button;
- TQLayout *_tqlayout;
+ TQLayout *_layout;
TQPoint _oldpos;
};
diff --git a/kicker/kicker/core/container_extension.cpp b/kicker/kicker/core/container_extension.cpp
index 6a1455f3e..52e85bd7e 100644
--- a/kicker/kicker/core/container_extension.cpp
+++ b/kicker/kicker/core/container_extension.cpp
@@ -139,11 +139,11 @@ void ExtensionContainer::init()
_popupWidgetFilter = new PopupWidgetFilter( this );
connect(_popupWidgetFilter, TQT_SIGNAL(popupWidgetHiding()), TQT_SLOT(maybeStartAutoHideTimer()));
- // tqlayout
- _tqlayout = new TQGridLayout(this, 3, 3, 0, 0);
- _tqlayout->setResizeMode(TQLayout::FreeResize);
- _tqlayout->setRowStretch(1,10);
- _tqlayout->setColStretch(1,10);
+ // layout
+ _layout = new TQGridLayout(this, 3, 3, 0, 0);
+ _layout->setResizeMode(TQLayout::FreeResize);
+ _layout->setRowStretch(1,10);
+ _layout->setColStretch(1,10);
// instantiate the autohide timer
_autohideTimer = new TQTimer(this, "_autohideTimer");
@@ -198,7 +198,7 @@ void ExtensionContainer::init()
connect(m_extension, TQT_SIGNAL(maintainFocus(bool)),
TQT_SLOT(maintainFocus(bool)));
- _tqlayout->addWidget(m_extension, 1, 1);
+ _layout->addWidget(m_extension, 1, 1);
}
if (!m_settings.iExist())
@@ -212,7 +212,7 @@ ExtensionContainer::~ExtensionContainer()
{
}
-TQSize ExtensionContainer::tqsizeHint(KPanelExtension::Position p, const TQSize &maxSize) const
+TQSize ExtensionContainer::sizeHint(KPanelExtension::Position p, const TQSize &maxSize) const
{
int width = 0;
int height = 0;
@@ -234,7 +234,7 @@ TQSize ExtensionContainer::tqsizeHint(KPanelExtension::Position p, const TQSize
}
// don't forget we might have a border!
- width += _tqlayout->colSpacing(0) + _tqlayout->colSpacing(2);
+ width += _layout->colSpacing(0) + _layout->colSpacing(2);
}
else
{
@@ -254,7 +254,7 @@ TQSize ExtensionContainer::tqsizeHint(KPanelExtension::Position p, const TQSize
}
// don't forget we might have a border!
- height += _tqlayout->rowSpacing(0) + _tqlayout->rowSpacing(2);
+ height += _layout->rowSpacing(0) + _layout->rowSpacing(2);
}
TQSize size(width, height);
@@ -262,7 +262,7 @@ TQSize ExtensionContainer::tqsizeHint(KPanelExtension::Position p, const TQSize
if (m_extension)
{
- size = m_extension->tqsizeHint(p, maxSize - size) + size;
+ size = m_extension->sizeHint(p, maxSize - size) + size;
}
return size.boundedTo(maxSize);
@@ -293,7 +293,7 @@ void ExtensionContainer::readConfig()
}
positionChange(position());
- tqalignmentChange(tqalignment());
+ alignmentChange(alignment());
setSize(static_cast<KPanelExtension::Size>(m_settings.size()),
m_settings.customSize());
@@ -471,7 +471,7 @@ void ExtensionContainer::moveMe()
KPanelExtension::Right,
KPanelExtension::Top,
KPanelExtension::Bottom };
- KPanelExtension::Alignment tqalignments[] = { KPanelExtension::LeftTop,
+ KPanelExtension::Alignment alignments[] = { KPanelExtension::LeftTop,
KPanelExtension::Center,
KPanelExtension::RightBottom };
@@ -482,26 +482,26 @@ void ExtensionContainer::moveMe()
for (int j = 0; j < 3; j++)
{
// FIXME:
- // asking for initial tqgeometry here passes bogus heightForWidth
+ // asking for initial geometry here passes bogus heightForWidth
// and widthForHeight requests to applets and buttons. if they
- // need to make tqlayout adjustments or need to calculate based
+ // need to make layout adjustments or need to calculate based
// on other parameters this can lead to Bad Things(tm)
//
// we need to find a way to do this that doesn't result in
- // tqsizeHint's getting called on the extension =/
+ // sizeHint's getting called on the extension =/
//
// or else we need to change the semantics for applets so that
// they don't get their "you're changing position" signals through
// heightForWidth/widthForHeight
rects.append(UserRectSel::PanelStrut(initialGeometry(positions[i],
- tqalignments[j], s),
- s, positions[i], tqalignments[j]));
+ alignments[j], s),
+ s, positions[i], alignments[j]));
}
}
}
UserRectSel::PanelStrut newStrut = UserRectSel::select(rects, rect().center(), m_highlightColor);
- arrange(newStrut.m_pos, newStrut.m_tqalignment, newStrut.m_screen);
+ arrange(newStrut.m_pos, newStrut.m_alignment, newStrut.m_screen);
_is_lmb_down = false;
@@ -532,7 +532,7 @@ void ExtensionContainer::updateLayout()
return;
}
- // don't update our tqlayout more than once every half a second...
+ // don't update our layout more than once every half a second...
if (_in_autohide)
{
// ... unless we are autohiding
@@ -556,12 +556,12 @@ void ExtensionContainer::enableMouseOverEffects()
KickerTip::enableTipping(true);
TQPoint globalPos = TQCursor::pos();
TQPoint localPos = mapFromGlobal(globalPos);
- TQWidget* child = tqchildAt(localPos);
+ TQWidget* child = childAt(localPos);
if (child)
{
TQMouseEvent* e = new TQMouseEvent(TQEvent::Enter, localPos, globalPos, 0, 0);
- tqApp->sendEvent(child, e);
+ qApp->sendEvent(child, e);
}
}
@@ -657,16 +657,16 @@ void ExtensionContainer::unhideTriggered(UnhideTrigger::Trigger tr, int Xinerama
// Otherwise hide mode is automatic. The code below is slightly
// complex so as to keep the same behavior as it has always had:
- // only unhide when the cursor position is within the widget tqgeometry.
- // We can't just do tqgeometry().tqcontains(TQCursor::pos()) because
+ // only unhide when the cursor position is within the widget geometry.
+ // We can't just do geometry().contains(TQCursor::pos()) because
// now we hide the panel completely off screen.
int x = TQCursor::pos().x();
int y = TQCursor::pos().y();
- int t = tqgeometry().top();
- int b = tqgeometry().bottom();
- int r = tqgeometry().right();
- int l = tqgeometry().left();
+ int t = geometry().top();
+ int b = geometry().bottom();
+ int r = geometry().right();
+ int l = geometry().left();
if (((tr == UnhideTrigger::Top ||
tr == UnhideTrigger::TopLeft ||
tr == UnhideTrigger::TopRight) &&
@@ -730,9 +730,9 @@ void ExtensionContainer::autoHideTimeout()
return;
}
- TQRect r = tqgeometry();
+ TQRect r = geometry();
TQPoint p = TQCursor::pos();
- if (!r.tqcontains(p) &&
+ if (!r.contains(p) &&
(m_settings.unhideLocation() == UnhideTrigger::None ||
!shouldUnhideForTrigger(m_unhideTriggeredAt)))
{
@@ -766,7 +766,7 @@ void ExtensionContainer::autoHide(bool hide)
blockUserInput(true);
TQPoint oldpos = pos();
- TQRect newextent = initialGeometry( position(), tqalignment(), xineramaScreen(), hide, Unhidden );
+ TQRect newextent = initialGeometry( position(), alignment(), xineramaScreen(), hide, Unhidden );
TQPoint newpos = newextent.topLeft();
if (hide)
@@ -781,7 +781,7 @@ void ExtensionContainer::autoHide(bool hide)
* letting them show reveal buttons onscreen */
TQRect desktopGeom = TQApplication::desktop()->screenGeometry(s);
if (desktopGeom.intersects(newextent) &&
- !desktopGeom.intersects(tqgeometry()))
+ !desktopGeom.intersects(geometry()))
{
blockUserInput( false );
return;
@@ -821,8 +821,8 @@ void ExtensionContainer::autoHide(bool hide)
move(oldpos.x() - i, newpos.y());
}
- tqApp->syncX();
- tqApp->processEvents();
+ qApp->syncX();
+ qApp->processEvents();
}
}
else
@@ -839,8 +839,8 @@ void ExtensionContainer::autoHide(bool hide)
move(newpos.x(), oldpos.y() - i);
}
- tqApp->syncX();
- tqApp->processEvents();
+ qApp->syncX();
+ qApp->processEvents();
}
}
}
@@ -878,7 +878,7 @@ void ExtensionContainer::animatedHide(bool left)
}
TQPoint oldpos = pos();
- TQRect newextent = initialGeometry(position(), tqalignment(), xineramaScreen(), false, newState);
+ TQRect newextent = initialGeometry(position(), alignment(), xineramaScreen(), false, newState);
TQPoint newpos(newextent.topLeft());
if (newState != Unhidden)
@@ -891,7 +891,7 @@ void ExtensionContainer::animatedHide(bool left)
* panels from hiding by sliding onto other screens, while still
* letting them show reveal buttons onscreen */
if (TQApplication::desktop()->screenGeometry(s).intersects(newextent) &&
- !TQApplication::desktop()->screenGeometry(s).intersects(tqgeometry()))
+ !TQApplication::desktop()->screenGeometry(s).intersects(geometry()))
{
blockUserInput(false);
TQTimer::singleShot(100, this, TQT_SLOT(enableMouseOverEffects()));
@@ -920,8 +920,8 @@ void ExtensionContainer::animatedHide(bool left)
{
move(newpos.x(), oldpos.y() - i);
}
- tqApp->syncX();
- tqApp->processEvents();
+ qApp->syncX();
+ qApp->processEvents();
}
}
else
@@ -937,8 +937,8 @@ void ExtensionContainer::animatedHide(bool left)
{
move(oldpos.x() - i, newpos.y());
}
- tqApp->syncX();
- tqApp->processEvents();
+ qApp->syncX();
+ qApp->processEvents();
}
}
}
@@ -948,8 +948,8 @@ void ExtensionContainer::animatedHide(bool left)
_userHidden = newState;
actuallyUpdateLayout();
- tqApp->syncX();
- tqApp->processEvents();
+ qApp->syncX();
+ qApp->processEvents();
// save our hidden status so that when kicker starts up again
// we'll come back in the same state
@@ -965,11 +965,11 @@ bool ExtensionContainer::reserveStrut() const
return !m_extension || m_extension->reserveStrut();
}
-KPanelExtension::Alignment ExtensionContainer::tqalignment() const
+KPanelExtension::Alignment ExtensionContainer::alignment() const
{
// KConfigXT really needs to get support for vars that are enums that
// are defined in other classes
- return static_cast<KPanelExtension::Alignment>(m_settings.tqalignment());
+ return static_cast<KPanelExtension::Alignment>(m_settings.alignment());
}
void ExtensionContainer::updateWindowManager()
@@ -983,8 +983,8 @@ void ExtensionContainer::updateWindowManager()
int w = 0;
int h = 0;
- TQRect geom = initialGeometry(position(), tqalignment(), xineramaScreen());
- TQRect virtRect(TQApplication::desktop()->tqgeometry());
+ TQRect geom = initialGeometry(position(), alignment(), xineramaScreen());
+ TQRect virtRect(TQApplication::desktop()->geometry());
TQRect screenRect(TQApplication::desktop()->screenGeometry(xineramaScreen()));
if (m_hideMode == ManualHide && !userHidden())
@@ -1087,7 +1087,7 @@ void ExtensionContainer::strutChanged()
//kdDebug(1210) << "PanelContainer::strutChanged()" << endl;
TQRect ig = currentGeometry();
- if (ig != tqgeometry())
+ if (ig != geometry())
{
setGeometry(ig);
updateLayout();
@@ -1106,11 +1106,11 @@ void ExtensionContainer::blockUserInput( bool block )
// eventfilter discard those events.
if ( block )
{
- tqApp->installEventFilter( this );
+ qApp->installEventFilter( this );
}
else
{
- tqApp->removeEventFilter( this );
+ qApp->removeEventFilter( this );
}
_block_user_input = block;
@@ -1170,11 +1170,11 @@ void ExtensionContainer::maintainFocus(bool maintain)
int ExtensionContainer::arrangeHideButtons()
{
- bool tqlayoutEnabled = _tqlayout->isEnabled();
+ bool layoutEnabled = _layout->isEnabled();
- if (tqlayoutEnabled)
+ if (layoutEnabled)
{
- _tqlayout->setEnabled(false);
+ _layout->setEnabled(false);
}
if (orientation() == Vertical)
@@ -1190,16 +1190,16 @@ int ExtensionContainer::arrangeHideButtons()
{
_ltHB->setMaximumWidth(maxWidth);
_ltHB->setMaximumHeight(14);
- _tqlayout->remove(_ltHB);
- _tqlayout->addWidget(_ltHB, 0, 1, Qt::AlignBottom | Qt::AlignLeft);
+ _layout->remove(_ltHB);
+ _layout->addWidget(_ltHB, 0, 1, Qt::AlignBottom | Qt::AlignLeft);
}
if (_rbHB)
{
_rbHB->setMaximumWidth(maxWidth);
_rbHB->setMaximumHeight(14);
- _tqlayout->remove(_rbHB);
- _tqlayout->addWidget(_rbHB, 2, 1);
+ _layout->remove(_rbHB);
+ _layout->addWidget(_rbHB, 2, 1);
}
}
else
@@ -1218,14 +1218,14 @@ int ExtensionContainer::arrangeHideButtons()
{
_ltHB->setMaximumHeight(maxHeight);
_ltHB->setMaximumWidth(14);
- _tqlayout->remove(_ltHB);
+ _layout->remove(_ltHB);
if (kapp->reverseLayout())
{
- _tqlayout->addWidget(_ltHB, 1, 2, vertAlignment);
+ _layout->addWidget(_ltHB, 1, 2, vertAlignment);
}
else
{
- _tqlayout->addWidget(_ltHB, 1, 0, leftAlignment | vertAlignment);
+ _layout->addWidget(_ltHB, 1, 0, leftAlignment | vertAlignment);
}
}
@@ -1233,57 +1233,57 @@ int ExtensionContainer::arrangeHideButtons()
{
_rbHB->setMaximumHeight(maxHeight);
_rbHB->setMaximumWidth(14);
- _tqlayout->remove(_rbHB);
+ _layout->remove(_rbHB);
if (kapp->reverseLayout())
{
- _tqlayout->addWidget(_rbHB, 1, 0, leftAlignment | vertAlignment);
+ _layout->addWidget(_rbHB, 1, 0, leftAlignment | vertAlignment);
}
else
{
- _tqlayout->addWidget(_rbHB, 1, 2, vertAlignment);
+ _layout->addWidget(_rbHB, 1, 2, vertAlignment);
}
}
}
- int tqlayoutOffset = setupBorderSpace();
- if (tqlayoutEnabled)
+ int layoutOffset = setupBorderSpace();
+ if (layoutEnabled)
{
- _tqlayout->setEnabled(true);
+ _layout->setEnabled(true);
}
- return tqlayoutOffset;
+ return layoutOffset;
}
int ExtensionContainer::setupBorderSpace()
{
- _tqlayout->setRowSpacing(0, 0);
- _tqlayout->setRowSpacing(2, 0);
- _tqlayout->setColSpacing(0, 0);
- _tqlayout->setColSpacing(2, 0);
+ _layout->setRowSpacing(0, 0);
+ _layout->setRowSpacing(2, 0);
+ _layout->setColSpacing(0, 0);
+ _layout->setColSpacing(2, 0);
if (!needsBorder())
{
return 0;
}
- int tqlayoutOffset = 0;
+ int layoutOffset = 0;
TQRect r = TQApplication::desktop()->screenGeometry(xineramaScreen());
- TQRect h = tqgeometry();
+ TQRect h = geometry();
if (orientation() == Vertical)
{
if (h.top() > 0)
{
int topHeight = (_ltHB && _ltHB->isVisibleTo(this)) ? _ltHB->height() + 1 : 1;
- _tqlayout->setRowSpacing(0, topHeight);
- ++tqlayoutOffset;
+ _layout->setRowSpacing(0, topHeight);
+ ++layoutOffset;
}
if (h.bottom() < r.bottom())
{
int bottomHeight = (_rbHB && _rbHB->isVisibleTo(this)) ? _rbHB->height() + 1 : 1;
- _tqlayout->setRowSpacing(1, bottomHeight);
- ++tqlayoutOffset;
+ _layout->setRowSpacing(1, bottomHeight);
+ ++layoutOffset;
}
}
else
@@ -1291,39 +1291,39 @@ int ExtensionContainer::setupBorderSpace()
if (h.left() > 0)
{
int leftWidth = (_ltHB && _ltHB->isVisibleTo(this)) ? _ltHB->width() + 1 : 1;
- _tqlayout->setColSpacing(0, leftWidth);
- ++tqlayoutOffset;
+ _layout->setColSpacing(0, leftWidth);
+ ++layoutOffset;
}
if (h.right() < r.right())
{
int rightWidth = (_rbHB && _rbHB->isVisibleTo(this)) ? _rbHB->width() + 1 : 1;
- _tqlayout->setColSpacing(1, rightWidth);
- ++tqlayoutOffset;
+ _layout->setColSpacing(1, rightWidth);
+ ++layoutOffset;
}
}
switch (position())
{
case KPanelExtension::Left:
- _tqlayout->setColSpacing(2, 1);
+ _layout->setColSpacing(2, 1);
break;
case KPanelExtension::Right:
- _tqlayout->setColSpacing(0, 1);
+ _layout->setColSpacing(0, 1);
break;
case KPanelExtension::Top:
- _tqlayout->setRowSpacing(2, 1);
+ _layout->setRowSpacing(2, 1);
break;
case KPanelExtension::Bottom:
default:
- _tqlayout->setRowSpacing(0, 1);
+ _layout->setRowSpacing(0, 1);
break;
}
- return tqlayoutOffset;
+ return layoutOffset;
}
void ExtensionContainer::positionChange(KPanelExtension::Position p)
@@ -1368,14 +1368,14 @@ void ExtensionContainer::leaveEvent(TQEvent*)
maybeStartAutoHideTimer();
}
-void ExtensionContainer::tqalignmentChange(KPanelExtension::Alignment a)
+void ExtensionContainer::alignmentChange(KPanelExtension::Alignment a)
{
if (!m_extension)
{
return;
}
- m_extension->tqsetAlignment(a);
+ m_extension->setAlignment(a);
}
void ExtensionContainer::setSize(KPanelExtension::Size size, int custom)
@@ -1437,8 +1437,8 @@ void ExtensionContainer::setHideButtons(bool showLeft, bool showRight)
bool ExtensionContainer::event(TQEvent* e)
{
- // Update the tqlayout when we receive a LayoutHint. This way we can adjust
- // to changes of the tqlayout of the main widget.
+ // Update the layout when we receive a LayoutHint. This way we can adjust
+ // to changes of the layout of the main widget.
if (e->type() == TQEvent::LayoutHint)
{
updateLayout();
@@ -1458,7 +1458,7 @@ void ExtensionContainer::arrange(KPanelExtension::Position p,
int XineramaScreen)
{
if (p == m_settings.position() &&
- a == m_settings.tqalignment() &&
+ a == m_settings.alignment() &&
XineramaScreen == xineramaScreen())
{
return;
@@ -1471,18 +1471,18 @@ void ExtensionContainer::arrange(KPanelExtension::Position p,
}
else if (!needsBorder())
{
- // this ensures that the tqlayout gets rejigged
+ // this ensures that the layout gets rejigged
// even if position doesn't change
- _tqlayout->setRowSpacing(0, 0);
- _tqlayout->setRowSpacing(2, 0);
- _tqlayout->setColSpacing(0, 0);
- _tqlayout->setColSpacing(2, 0);
+ _layout->setRowSpacing(0, 0);
+ _layout->setRowSpacing(2, 0);
+ _layout->setColSpacing(0, 0);
+ _layout->setColSpacing(2, 0);
}
- if (a != m_settings.tqalignment())
+ if (a != m_settings.alignment())
{
- m_settings.tqsetAlignment(a);
- tqsetAlignment(a);
+ m_settings.setAlignment(a);
+ setAlignment(a);
}
if (XineramaScreen != xineramaScreen())
@@ -1521,22 +1521,22 @@ KPanelExtension::Position ExtensionContainer::position() const
void ExtensionContainer::resetLayout()
{
- TQRect g = initialGeometry(position(), tqalignment(), xineramaScreen(),
+ TQRect g = initialGeometry(position(), alignment(), xineramaScreen(),
autoHidden(), userHidden());
- // Disable the tqlayout while we rearrange the panel.
+ // Disable the layout while we rearrange the panel.
// Necessary because the children may be
- // retqlayouted with the wrong size.
+ // relayouted with the wrong size.
- _tqlayout->setEnabled(false);
+ _layout->setEnabled(false);
- if (tqgeometry() != g)
+ if (geometry() != g)
{
setGeometry(g);
ExtensionManager::the()->extensionSizeChanged(this);
}
- // tqlayout
+ // layout
bool haveToArrangeButtons = false;
bool showLeftHideButton = m_settings.showLeftHideButton() || userHidden() == RightBottom;
bool showRightHideButton = m_settings.showRightHideButton() || userHidden() == LeftTop;
@@ -1685,7 +1685,7 @@ void ExtensionContainer::resetLayout()
}
}
- _tqlayout->setEnabled(true);
+ _layout->setEnabled(true);
}
bool ExtensionContainer::needsBorder() const
@@ -1700,7 +1700,7 @@ TQSize ExtensionContainer::initialSize(KPanelExtension::Position p, TQRect workA
", " << workArea.topLeft().y() << ") to (" << workArea.bottomRight().x() <<
", " << workArea.bottomRight().y() << ")" << endl;*/
- TQSize hint = tqsizeHint(p, workArea.size()).boundedTo(workArea.size());
+ TQSize hint = sizeHint(p, workArea.size()).boundedTo(workArea.size());
int width = 0;
int height = 0;
@@ -1739,7 +1739,7 @@ TQPoint ExtensionContainer::initialLocation(KPanelExtension::Position p,
TQRect wholeScreen;
if (XineramaScreen == XineramaAllScreens)
{
- wholeScreen = TQApplication::desktop()->tqgeometry();
+ wholeScreen = TQApplication::desktop()->geometry();
}
else
{
@@ -1920,12 +1920,12 @@ void ExtensionContainer::setXineramaScreen(int screen)
return;
}
- arrange(position(),tqalignment(), screen);
+ arrange(position(),alignment(), screen);
}
TQRect ExtensionContainer::currentGeometry() const
{
- return initialGeometry(position(), tqalignment(), xineramaScreen(),
+ return initialGeometry(position(), alignment(), xineramaScreen(),
autoHidden(), userHidden());
}
@@ -1937,7 +1937,7 @@ TQRect ExtensionContainer::initialGeometry(KPanelExtension::Position p,
{
//RESEARCH: is there someway to cache the results of the repeated calls to this method?
- /*kdDebug(1210) << "initialGeometry() Computing tqgeometry for " << name() <<
+ /*kdDebug(1210) << "initialGeometry() Computing geometry for " << name() <<
" on screen " << XineramaScreen << endl;*/
TQRect workArea = ExtensionManager::the()->workArea(XineramaScreen, this);
TQSize size = initialSize(p, workArea);
diff --git a/kicker/kicker/core/container_extension.h b/kicker/kicker/core/container_extension.h
index 2da239d7b..8eedd4e6f 100644
--- a/kicker/kicker/core/container_extension.h
+++ b/kicker/kicker/core/container_extension.h
@@ -66,7 +66,7 @@ public:
TQWidget *parent = 0);
virtual ~ExtensionContainer();
- virtual TQSize tqsizeHint(KPanelExtension::Position, const TQSize &maxSize) const;
+ virtual TQSize sizeHint(KPanelExtension::Position, const TQSize &maxSize) const;
const AppletInfo& info() const { return _info; }
@@ -86,7 +86,7 @@ public:
KPanelExtension::Orientation orientation() const;
KPanelExtension::Position position() const;
- void setPosition(KPanelExtension::Position p) { arrange( p, tqalignment(), xineramaScreen() ); }
+ void setPosition(KPanelExtension::Position p) { arrange( p, alignment(), xineramaScreen() ); }
int xineramaScreen() const;
void setXineramaScreen(int screen);
@@ -100,8 +100,8 @@ public:
void unhideIfHidden(int showForHowManyMS = 0);
bool reserveStrut() const;
- KPanelExtension::Alignment tqalignment() const;
- void tqsetAlignment(KPanelExtension::Alignment a) { arrange( position(), a, xineramaScreen() ); }
+ KPanelExtension::Alignment alignment() const;
+ void setAlignment(KPanelExtension::Alignment a) { arrange( position(), a, xineramaScreen() ); }
TQRect currentGeometry() const;
TQRect initialGeometry(KPanelExtension::Position p, KPanelExtension::Alignment a,
@@ -159,7 +159,7 @@ private:
int XineramaScreen, const TQSize &s, TQRect workArea,
bool autohidden = false, UserHidden userHidden = Unhidden) const;
void positionChange(KPanelExtension::Position p);
- void tqalignmentChange(KPanelExtension::Alignment a);
+ void alignmentChange(KPanelExtension::Alignment a);
void xineramaScreenChange(int /*XineramaScreen*/) {}
int arrangeHideButtons();
int setupBorderSpace();
@@ -190,7 +190,7 @@ private:
// Widgets
HideButton *_ltHB; // Left Hide Button
HideButton *_rbHB; // Right Hide Button
- TQGridLayout *_tqlayout;
+ TQGridLayout *_layout;
KPanelExtension *m_extension;
int m_maintainFocus;
diff --git a/kicker/kicker/core/containerarea.cpp b/kicker/kicker/core/containerarea.cpp
index bd596f214..8fd839a20 100644
--- a/kicker/kicker/core/containerarea.cpp
+++ b/kicker/kicker/core/containerarea.cpp
@@ -88,7 +88,7 @@ ContainerArea::ContainerArea(KConfig* _c,
m_canAddContainers(true),
m_immutable(_c->isImmutable()),
m_updateBackgroundsCalled(false),
- m_tqlayout(0),
+ m_layout(0),
m_addAppletDialog(0),
_autoScrollTimer(0, "ContainerArea::autoScrollTimer")
{
@@ -96,9 +96,9 @@ ContainerArea::ContainerArea(KConfig* _c,
m_contents = viewport();
- m_tqlayout = new ContainerAreaLayout(m_contents);
+ m_layout = new ContainerAreaLayout(m_contents);
- // Install an event filter to propagate tqlayout hints coming from m_contents.
+ // Install an event filter to propagate layout hints coming from m_contents.
m_contents->installEventFilter(this);
setBackground();
@@ -123,7 +123,7 @@ void ContainerArea::initialize(bool useDefaultConfig)
// do we really need to do this?
removeAllContainers();
- // restore applet tqlayout or load a default panel tqlayout
+ // restore applet layout or load a default panel layout
_config->setGroup("General");
if (_config->hasKey("Applets2"))
{
@@ -380,7 +380,7 @@ void ContainerArea::loadContainers(const TQStringList& containers)
TQTimer::singleShot(0, this, TQT_SLOT(updateContainersBackground()));
}
-void ContainerArea::saveContainerConfig(bool tqlayoutOnly)
+void ContainerArea::saveContainerConfig(bool layoutOnly)
{
if (!canAddContainers())
{
@@ -389,14 +389,14 @@ void ContainerArea::saveContainerConfig(bool tqlayoutOnly)
// Save the applet list
TQStringList alist;
- TQLayoutIterator it2 = m_tqlayout->iterator();
+ TQLayoutIterator it2 = m_layout->iterator();
for (; it2.current(); ++it2)
{
BaseContainer* a = dynamic_cast<BaseContainer*>(it2.current()->widget());
if (a)
{
KConfigGroup group(_config, a->appletId().latin1());
- a->saveConfiguration(group, tqlayoutOnly);
+ a->saveConfiguration(group, layoutOnly);
alist.append(a->appletId());
}
}
@@ -700,22 +700,22 @@ void ContainerArea::addContainer(BaseContainer* a, bool arrange, int index)
if (arrange)
{
- TQWidget* w = m_tqlayout->widgetAt(index);
+ TQWidget* w = m_layout->widgetAt(index);
TQPoint oldInsertionPoint = Kicker::the()->insertionPoint();
if (w)
{
// let's set the insertion point to where the widget asked to be
// put in front of is
- Kicker::the()->setInsertionPoint(w->tqgeometry().topLeft());
+ Kicker::the()->setInsertionPoint(w->geometry().topLeft());
}
if (Kicker::the()->insertionPoint().isNull())
{
- m_tqlayout->insertIntoFreeSpace(a, TQPoint());
+ m_layout->insertIntoFreeSpace(a, TQPoint());
}
else
{
- m_tqlayout->insertIntoFreeSpace(a, mapFromGlobal(Kicker::the()->insertionPoint()));
+ m_layout->insertIntoFreeSpace(a, mapFromGlobal(Kicker::the()->insertionPoint()));
}
if (w)
@@ -725,7 +725,7 @@ void ContainerArea::addContainer(BaseContainer* a, bool arrange, int index)
}
else
{
- m_tqlayout->add(a);
+ m_layout->add(a);
}
connect(a, TQT_SIGNAL(moveme(BaseContainer*)),
@@ -758,7 +758,7 @@ bool ContainerArea::removeContainer(BaseContainer *a)
a->slotRemoved(_config);
m_containers.remove(a);
- m_tqlayout->remove(a);
+ m_layout->remove(a);
a->deleteLater();
saveContainerConfig(true);
resizeContents();
@@ -772,7 +772,7 @@ bool ContainerArea::removeContainer(int index)
return false;
}
- BaseContainer* a = dynamic_cast<BaseContainer*>(m_tqlayout->widgetAt(index));
+ BaseContainer* a = dynamic_cast<BaseContainer*>(m_layout->widgetAt(index));
if (!a || a->isImmutable())
{
return false;
@@ -780,7 +780,7 @@ bool ContainerArea::removeContainer(int index)
a->slotRemoved(_config);
m_containers.remove(a);
- m_tqlayout->remove(a);
+ m_layout->remove(a);
a->deleteLater();
saveContainerConfig(true);
resizeContents();
@@ -794,7 +794,7 @@ void ContainerArea::removeContainers(BaseContainer::List containers)
return;
}
- m_tqlayout->setEnabled(false);
+ m_layout->setEnabled(false);
for (BaseContainer::List::const_iterator it = containers.constBegin();
it != containers.constEnd();
@@ -808,11 +808,11 @@ void ContainerArea::removeContainers(BaseContainer::List containers)
a->slotRemoved(_config);
m_containers.remove(a);
- m_tqlayout->remove(a);
+ m_layout->remove(a);
a->deleteLater();
}
- m_tqlayout->setEnabled(true);
+ m_layout->setEnabled(true);
saveContainerConfig(true);
resizeContents();
}
@@ -840,7 +840,7 @@ void ContainerArea::takeContainer(BaseContainer* a)
_config->deleteGroup(a->appletId().latin1());
_config->sync();
m_containers.remove(a);
- m_tqlayout->remove(a);
+ m_layout->remove(a);
saveContainerConfig(true);
resizeContents();
}
@@ -852,7 +852,7 @@ void ContainerArea::resizeContents()
if (orientation() == Qt::Horizontal)
{
- int newWidth = m_tqlayout->widthForHeight(h);
+ int newWidth = m_layout->widthForHeight(h);
if (newWidth > w)
{
resizeContents(newWidth, h);
@@ -864,7 +864,7 @@ void ContainerArea::resizeContents()
}
else
{
- int newHeight = m_tqlayout->heightForWidth(w);
+ int newHeight = m_layout->heightForWidth(w);
if (newHeight > h)
{
@@ -925,7 +925,7 @@ void ContainerArea::startContainerMove(BaseContainer *a)
setMouseTracking(true);
grabMouse(sizeAllCursor);
- m_tqlayout->setStretchEnabled(false);
+ m_layout->setStretchEnabled(false);
a->raise();
}
@@ -949,7 +949,7 @@ void ContainerArea::mouseReleaseEvent(TQMouseEvent *)
_moveAC = 0;
emit maintainFocus(false);
- m_tqlayout->setStretchEnabled(true);
+ m_layout->setStretchEnabled(true);
updateContainersBackground();
saveContainerConfig(true);
}
@@ -962,7 +962,7 @@ void ContainerArea::mouseMoveEvent(TQMouseEvent *ev)
return;
}
- if (ev->state() == LeftButton && !rect().tqcontains(ev->pos()))
+ if (ev->state() == LeftButton && !rect().contains(ev->pos()))
{
// leaveEvent() doesn't work, while grabbing the mouse
_autoScrollTimer.stop();
@@ -974,7 +974,7 @@ void ContainerArea::mouseMoveEvent(TQMouseEvent *ev)
KickerTip::enableTipping(true);
emit maintainFocus(false);
- m_tqlayout->setStretchEnabled(true);
+ m_layout->setStretchEnabled(true);
updateContainersBackground();
saveContainerConfig(true);
@@ -992,19 +992,19 @@ void ContainerArea::mouseMoveEvent(TQMouseEvent *ev)
int x = ev->pos().x() + contentsX();
if (ev->state() & ShiftButton)
{
- m_tqlayout->moveContainerPush(_moveAC, x - oldX);
+ m_layout->moveContainerPush(_moveAC, x - oldX);
}
else
{
- m_tqlayout->moveContainerSwitch(_moveAC, x - oldX);
+ m_layout->moveContainerSwitch(_moveAC, x - oldX);
/* FIXME: Scrolling when the container moves out of the viewport
bool scroll = false;
if (rtl)
if (newPos - 80 <= 0)
scroll = true;
else
- if (newPos + 80 >= (horizontal ? tqgeometry().width() - moving->tqgeometry().width()
- : tqgeometry().height() - moving->tqgeometry().height()))
+ if (newPos + 80 >= (horizontal ? geometry().width() - moving->geometry().width()
+ : geometry().height() - moving->geometry().height()))
scroll = true;
[...]
if (scroll) {
@@ -1025,11 +1025,11 @@ void ContainerArea::mouseMoveEvent(TQMouseEvent *ev)
int y = ev->pos().y() + contentsY();
if (ev->state() & ShiftButton)
{
- m_tqlayout->moveContainerPush(_moveAC, y - oldY);
+ m_layout->moveContainerPush(_moveAC, y - oldY);
}
else
{
- m_tqlayout->moveContainerSwitch(_moveAC, y - oldY);
+ m_layout->moveContainerSwitch(_moveAC, y - oldY);
// TODO: Scrolling
}
}
@@ -1066,7 +1066,7 @@ void ContainerArea::dragEnterEvent(TQDragEnterEvent *ev)
return;
}
- m_tqlayout->setStretchEnabled(false);
+ m_layout->setStretchEnabled(false);
if (!_dragIndicator)
{
@@ -1139,17 +1139,17 @@ void ContainerArea::dragMoveEvent(TQDragMoveEvent* ev)
TQKeyEvent fakedKeyRelease(TQEvent::KeyRelease, Key_Escape, 0, 0);
TQApplication::sendEvent(this, &fakedKeyPress);
TQApplication::sendEvent(this, &fakedKeyRelease);
- tqApp->processEvents();
+ qApp->processEvents();
startContainerMove(_moveAC);
// Align the container to the mouse position.
if (orientation() == Horizontal)
{
- m_tqlayout->moveContainerSwitch(_moveAC, ev->pos().x() + contentsX() - _moveAC->x());
+ m_layout->moveContainerSwitch(_moveAC, ev->pos().x() + contentsX() - _moveAC->x());
}
else
{
- m_tqlayout->moveContainerSwitch(_moveAC, ev->pos().y() + contentsY() - _moveAC->y());
+ m_layout->moveContainerSwitch(_moveAC, ev->pos().y() + contentsY() - _moveAC->y());
}
return;
}
@@ -1175,7 +1175,7 @@ void ContainerArea::dragLeaveEvent(TQDragLeaveEvent*)
{
_dragIndicator->hide();
}
- m_tqlayout->setStretchEnabled(true);
+ m_layout->setStretchEnabled(true);
_dragMoveAC = 0;
}
@@ -1196,7 +1196,7 @@ void ContainerArea::dropEvent(TQDropEvent *ev)
{
_dragMoveAC = 0;
_dragIndicator->hide();
- m_tqlayout->setStretchEnabled(true);
+ m_layout->setStretchEnabled(true);
return;
}
@@ -1213,19 +1213,19 @@ void ContainerArea::dropEvent(TQDropEvent *ev)
{
int oldX = a->x();
int x = _dragIndicator->x();
- m_tqlayout->moveContainerSwitch(a, x - oldX);
+ m_layout->moveContainerSwitch(a, x - oldX);
}
else if (orientation() == Vertical)
{
int oldY = a->y();
int y = _dragIndicator->y();
- m_tqlayout->moveContainerSwitch(a, y - oldY);
+ m_layout->moveContainerSwitch(a, y - oldY);
}
_dragMoveAC = 0;
_dragIndicator->hide();
- m_tqlayout->setEnabled(true);
- m_tqlayout->setStretchEnabled(true);
+ m_layout->setEnabled(true);
+ m_layout->setStretchEnabled(true);
saveContainerConfig(true);
return;
}
@@ -1236,10 +1236,10 @@ void ContainerArea::dropEvent(TQDropEvent *ev)
a->setAppletId(createUniqueId(a->appletType()));
addContainer(a, true);
Kicker::the()->setInsertionPoint(TQPoint());
- m_tqlayout->updateFreeSpaceValues();
+ m_layout->updateFreeSpaceValues();
_dragMoveAC = 0;
_dragIndicator->hide();
- m_tqlayout->setStretchEnabled(true);
+ m_layout->setStretchEnabled(true);
saveContainerConfig();
return;
}
@@ -1250,7 +1250,7 @@ void ContainerArea::dropEvent(TQDropEvent *ev)
{
Kicker::the()->setInsertionPoint(_dragIndicator->pos());
_dragIndicator->hide();
- m_tqlayout->setStretchEnabled(true);
+ m_layout->setStretchEnabled(true);
if (info.type() & AppletInfo::Button)
{
@@ -1271,7 +1271,7 @@ void ContainerArea::dropEvent(TQDropEvent *ev)
{
_dragMoveAC = 0;
_dragIndicator->hide();
- m_tqlayout->setStretchEnabled(true);
+ m_layout->setStretchEnabled(true);
return;
}
@@ -1366,32 +1366,32 @@ void ContainerArea::dropEvent(TQDropEvent *ev)
{
_dragIndicator->hide();
Kicker::the()->setInsertionPoint(TQPoint());
- m_tqlayout->setStretchEnabled(true);
+ m_layout->setStretchEnabled(true);
return;
}
addContainer(a, true);
- m_tqlayout->updateFreeSpaceValues();
+ m_layout->updateFreeSpaceValues();
}
saveContainerConfig();
_dragMoveAC = 0;
_dragIndicator->hide();
Kicker::the()->setInsertionPoint(TQPoint());
- m_tqlayout->setStretchEnabled(true);
+ m_layout->setStretchEnabled(true);
}
bool ContainerArea::eventFilter(TQObject* o, TQEvent* e)
{
- // Propagate the tqlayout hints which m_contents receives. This way widgets
- // which contain a ContainerArea can react to tqlayout changes of its
+ // Propagate the layout hints which m_contents receives. This way widgets
+ // which contain a ContainerArea can react to layout changes of its
// contents. For example: If an applets grows, the top level widget may
// want to grow as well.
if (o == m_contents)
{
if (e->type() == TQEvent::LayoutHint)
{
- updateGeometry(); // Posts a new tqlayout hint to our parent.
+ updateGeometry(); // Posts a new layout hint to our parent.
}
return false;
}
@@ -1430,7 +1430,7 @@ void ContainerArea::setBackground()
if (KickerSettings::transparent() &&
(KickerSettings::menubarPanelTransparent() ||
- !ExtensionManager::the()->isMenuBar(tqtopLevelWidget())))
+ !ExtensionManager::the()->isMenuBar(topLevelWidget())))
{
if (!_rootPixmap)
{
@@ -1441,7 +1441,7 @@ void ContainerArea::setBackground()
}
else
{
- _rootPixmap->tqrepaint(true);
+ _rootPixmap->repaint(true);
}
double tint = double(KickerSettings::tintValue()) / 100;
@@ -1633,7 +1633,7 @@ void ContainerArea::moveDragIndicator(int pos)
void ContainerArea::updateBackground( const TQPixmap& pm )
{
- TQBrush bgBrush(tqcolorGroup().background(), pm);
+ TQBrush bgBrush(colorGroup().background(), pm);
TQPalette pal = kapp->palette();
pal.setBrush(TQColorGroup::Background, bgBrush);
setPalette(pal);
@@ -1678,12 +1678,12 @@ void ContainerArea::setPosition(KPanelExtension::Position p)
p == KPanelExtension::Bottom) ?
Qt::Horizontal : Qt::Vertical;
bool orientationChanged = (orientation() != o);
- m_tqlayout->setEnabled(false);
+ m_layout->setEnabled(false);
if (orientationChanged)
{
setOrientation(o);
- m_tqlayout->setOrientation(o);
+ m_layout->setOrientation(o);
// when we change orientation, we will resize the "width"
// component down to 0, forcing a resize in resizeContents()
@@ -1712,23 +1712,23 @@ void ContainerArea::setPosition(KPanelExtension::Position p)
(*it)->setPopupDirection( popupDirection() );
}
- m_tqlayout->setEnabled(true);
+ m_layout->setEnabled(true);
setContentsPos(0, 0);
m_contents->move(0, 0);
setBackground();
- // container extension tqrepaints for us!
- //tqrepaint();
+ // container extension repaints for us!
+ //repaint();
}
-void ContainerArea::tqsetAlignment(KPanelExtension::Alignment a)
+void ContainerArea::setAlignment(KPanelExtension::Alignment a)
{
for (BaseContainer::ConstIterator it = m_containers.begin();
it != m_containers.end();
++it)
{
- (*it)->tqsetAlignment(a);
+ (*it)->setAlignment(a);
}
}
@@ -1778,21 +1778,21 @@ void ContainerArea::updateContainersBackground()
// A rather ugly hack. The code calls updateContainersBackground() all over
// the place even when nothing in fact has changed. Updating the background
// on every single unrelated change however means that e.g. the systray
- // flickers when a new window is opened/closed (because the taskbar is retqlayouted,
- // which triggers updateContainersBackground() even though the tqgeometry
+ // flickers when a new window is opened/closed (because the taskbar is relayouted,
+ // which triggers updateContainersBackground() even though the geometry
// of the taskbar does not change in fact. I'm apparently unable to fix this
- // properly, so just cache the tqgeometry and update background only when
- // the tqgeometry changes or when the background really changes (in which
+ // properly, so just cache the geometry and update background only when
+ // the geometry changes or when the background really changes (in which
// case the cached is cleared).
- if( !m_cachedGeometry.tqcontains( *it ))
+ if( !m_cachedGeometry.contains( *it ))
{
m_cachedGeometry[ *it ] = TQRect();
connect( *it, TQT_SIGNAL( destroyed()), TQT_SLOT( destroyCachedGeometry()));
}
- if( m_cachedGeometry[ *it ] != (*it)->tqgeometry())
+ if( m_cachedGeometry[ *it ] != (*it)->geometry())
{
(*it)->setBackground();
- m_cachedGeometry[ *it ] = (*it)->tqgeometry();
+ m_cachedGeometry[ *it ] = (*it)->geometry();
}
}
}
@@ -1891,12 +1891,12 @@ int ContainerArea::containerCount(const TQString& type) const
TQStringList ContainerArea::listContainers() const
{
- return m_tqlayout->listItems();
+ return m_layout->listItems();
}
-void ContainerArea::tqrepaint()
+void ContainerArea::repaint()
{
- Panner::tqrepaint();
+ Panner::repaint();
}
void ContainerArea::showAddAppletDialog()
@@ -1932,12 +1932,12 @@ const TQPixmap* ContainerArea::completeBackgroundPixmap() const
int ContainerArea::widthForHeight(int h) const
{
- return m_tqlayout->widthForHeight(h);
+ return m_layout->widthForHeight(h);
}
int ContainerArea::heightForWidth(int w) const
{
- return m_tqlayout->heightForWidth(w);
+ return m_layout->heightForWidth(w);
}
@@ -1952,8 +1952,8 @@ void DragIndicator::paintEvent(TQPaintEvent*)
{
TQPainter painter(this);
TQRect rect(0, 0, width(), height());
- style().drawPrimitive( TQStyle::PE_FocusRect, &painter, rect, tqcolorGroup(),
- TQStyle::Style_Default, tqcolorGroup().base() );
+ style().drawPrimitive( TQStyle::PE_FocusRect, &painter, rect, colorGroup(),
+ TQStyle::Style_Default, colorGroup().base() );
}
void DragIndicator::mousePressEvent(TQMouseEvent*)
diff --git a/kicker/kicker/core/containerarea.h b/kicker/kicker/core/containerarea.h
index fc8d1a402..a43cd8c9c 100644
--- a/kicker/kicker/core/containerarea.h
+++ b/kicker/kicker/core/containerarea.h
@@ -101,9 +101,9 @@ public slots:
void removeContainers(BaseContainer::List containers);
void takeContainer(BaseContainer* a);
void setPosition(KPanelExtension::Position p);
- void tqsetAlignment(KPanelExtension::Alignment a);
+ void setAlignment(KPanelExtension::Alignment a);
void slotSaveContainerConfig();
- void tqrepaint();
+ void repaint();
void showAddAppletDialog();
void addAppletDialogDone();
@@ -124,7 +124,7 @@ protected:
void defaultContainerConfig();
void loadContainers(const TQStringList& containers);
- void saveContainerConfig(bool tqlayoutOnly = false);
+ void saveContainerConfig(bool layoutOnly = false);
TQRect availableSpaceFollowing(BaseContainer*);
void moveDragIndicator(int pos);
@@ -166,7 +166,7 @@ private:
bool m_updateBackgroundsCalled;
TQWidget* m_contents;
- ContainerAreaLayout* m_tqlayout;
+ ContainerAreaLayout* m_layout;
AddAppletDialog* m_addAppletDialog;
TQMap< TQWidget*, TQRect > m_cachedGeometry;
};
diff --git a/kicker/kicker/core/containerarealayout.cpp b/kicker/kicker/core/containerarealayout.cpp
index feed4b59f..4ae63077e 100644
--- a/kicker/kicker/core/containerarealayout.cpp
+++ b/kicker/kicker/core/containerarealayout.cpp
@@ -58,11 +58,11 @@ class ContainerAreaLayoutIterator : public QGLayoutIterator
ContainerAreaLayout::ItemList::iterator b = m_list->at(m_idx);
if (b != m_list->end())
{
- ContainerAreaLayoutItem* tqlayoutItem = *b;
- item = tqlayoutItem->item;
- tqlayoutItem->item = 0;
+ ContainerAreaLayoutItem* layoutItem = *b;
+ item = layoutItem->item;
+ layoutItem->item = 0;
m_list->erase(b);
- delete tqlayoutItem;
+ delete layoutItem;
}
return item;
}
@@ -82,7 +82,7 @@ int ContainerAreaLayoutItem::heightForWidth(int w) const
}
else
{
- return item->tqsizeHint().height();
+ return item->sizeHint().height();
}
}
@@ -95,7 +95,7 @@ int ContainerAreaLayoutItem::widthForHeight(int h) const
}
else
{
- return item->tqsizeHint().width();
+ return item->sizeHint().width();
}
}
@@ -125,17 +125,17 @@ void ContainerAreaLayoutItem::setFreeSpaceRatio(double ratio)
Qt::Orientation ContainerAreaLayoutItem::orientation() const
{
- return m_tqlayout->orientation();
+ return m_layout->orientation();
}
-TQRect ContainerAreaLayoutItem::tqgeometryR() const
+TQRect ContainerAreaLayoutItem::geometryR() const
{
- return m_tqlayout->transform(tqgeometry());
+ return m_layout->transform(geometry());
}
void ContainerAreaLayoutItem::setGeometryR(const TQRect& r)
{
- setGeometry(m_tqlayout->transform(r));
+ setGeometry(m_layout->transform(r));
}
int ContainerAreaLayoutItem::widthForHeightR(int h) const
@@ -154,11 +154,11 @@ int ContainerAreaLayoutItem::widthR() const
{
if (orientation() == Horizontal)
{
- return tqgeometry().width();
+ return geometry().width();
}
else
{
- return tqgeometry().height();
+ return geometry().height();
}
}
@@ -166,11 +166,11 @@ int ContainerAreaLayoutItem::heightR() const
{
if (orientation() == Horizontal)
{
- return tqgeometry().height();
+ return geometry().height();
}
else
{
- return tqgeometry().width();
+ return geometry().width();
}
}
@@ -179,13 +179,13 @@ int ContainerAreaLayoutItem::leftR() const
if (orientation() == Horizontal)
{
if (TQApplication::reverseLayout())
- return m_tqlayout->tqgeometry().right() - tqgeometry().right();
+ return m_layout->geometry().right() - geometry().right();
else
- return tqgeometry().left();
+ return geometry().left();
}
else
{
- return tqgeometry().top();
+ return geometry().top();
}
}
@@ -194,13 +194,13 @@ int ContainerAreaLayoutItem::rightR() const
if (orientation() == Horizontal)
{
if (TQApplication::reverseLayout())
- return m_tqlayout->tqgeometry().right() - tqgeometry().left();
+ return m_layout->geometry().right() - geometry().left();
else
- return tqgeometry().right();
+ return geometry().right();
}
else
{
- return tqgeometry().bottom();
+ return geometry().bottom();
}
}
@@ -311,10 +311,10 @@ void ContainerAreaLayout::insertIntoFreeSpace(TQWidget* widget, TQPoint insertio
}
}
- TQRect geom = item->tqgeometryR();
+ TQRect geom = item->geometryR();
geom.moveLeft(insPos);
item->setGeometryR(geom);
- widget->setGeometry(transform(geom)); // widget isn't shown, tqlayout not active yet
+ widget->setGeometry(transform(geom)); // widget isn't shown, layout not active yet
if (current)
{
@@ -384,7 +384,7 @@ TQWidget* ContainerAreaLayout::widgetAt(int index) const
return m_items[index]->item->widget();
}
-TQSize ContainerAreaLayout::tqsizeHint() const
+TQSize ContainerAreaLayout::sizeHint() const
{
const int size = KickerLib::sizeValue(KPanelExtension::SizeSmall);
@@ -398,7 +398,7 @@ TQSize ContainerAreaLayout::tqsizeHint() const
}
}
-TQSize ContainerAreaLayout::tqminimumSize() const
+TQSize ContainerAreaLayout::minimumSize() const
{
const int size = KickerLib::sizeValue(KPanelExtension::SizeTiny);
@@ -566,7 +566,7 @@ void ContainerAreaLayout::moveContainerSwitch(TQWidget* container, int distance)
break;
// Move 'next' to the other side of 'moving'.
- TQRect geom = next->tqgeometryR();
+ TQRect geom = next->geometryR();
if (forward)
geom.moveLeft(geom.left() - moving->widthR());
else
@@ -630,7 +630,7 @@ void ContainerAreaLayout::moveContainerSwitch(TQWidget* container, int distance)
}
// Move the container to its new position and prevent it from moving outside the panel.
- TQRect geom = moving->tqgeometryR();
+ TQRect geom = moving->geometryR();
distance = kClamp(newPos, 0, widthR() - moving->widthR());
geom.moveLeft(distance);
moving->setGeometryR(geom);
@@ -645,7 +645,7 @@ void ContainerAreaLayout::moveContainerSwitch(TQWidget* container, int distance)
if(AppletContainer* applet = dynamic_cast<AppletContainer*>(container))
if( applet->info().desktopFile() == "menuapplet.desktop" )
{
- TQRect geom = (*it)->tqgeometryR();
+ TQRect geom = (*it)->geometryR();
if( prev != m_items.constEnd())
geom.moveLeft( (*prev)->rightR() + 1 );
else
@@ -662,7 +662,7 @@ int ContainerAreaLayout::moveContainerPush(TQWidget* a, int distance)
const bool horizontal = orientation() == Horizontal;
const bool reverseLayout = TQApplication::reverseLayout();
- // Get the iterator 'it' pointing to the tqlayoutitem representing 'a'.
+ // Get the iterator 'it' pointing to the layoutitem representing 'a'.
ItemList::const_iterator it = m_items.constBegin();
while (it != m_items.constEnd() && (*it)->item->widget() != a)
{
@@ -721,7 +721,7 @@ int ContainerAreaLayout::moveContainerPushRecursive(ItemList::const_iterator it,
moved = forward ? kMin(distance, available)
: kMax(distance, available);
- TQRect geom = cur->tqgeometryR();
+ TQRect geom = cur->geometryR();
geom.moveLeft(geom.left() + moved);
cur->setGeometryR(geom);
@@ -735,7 +735,7 @@ TQRect ContainerAreaLayout::transform(const TQRect& r) const
if (TQApplication::reverseLayout())
{
TQRect t = r;
- t.moveLeft(tqgeometry().right() - r.right());
+ t.moveLeft(geometry().right() - r.right());
return t;
}
else
@@ -765,11 +765,11 @@ int ContainerAreaLayout::widthR() const
{
if (orientation() == Horizontal)
{
- return tqgeometry().width();
+ return geometry().width();
}
else
{
- return tqgeometry().height();
+ return geometry().height();
}
}
@@ -777,27 +777,27 @@ int ContainerAreaLayout::heightR() const
{
if (orientation() == Horizontal)
{
- return tqgeometry().height();
+ return geometry().height();
}
else
{
- return tqgeometry().width();
+ return geometry().width();
}
}
int ContainerAreaLayout::leftR() const
{
if (orientation() == Horizontal)
- return tqgeometry().left();
+ return geometry().left();
else
- return tqgeometry().top();
+ return geometry().top();
}
int ContainerAreaLayout::rightR() const
{
if (orientation() == Horizontal)
- return tqgeometry().right();
+ return geometry().right();
else
- return tqgeometry().bottom();
+ return geometry().bottom();
}
diff --git a/kicker/kicker/core/containerarealayout.h b/kicker/kicker/core/containerarealayout.h
index 01bbb40d5..995497268 100644
--- a/kicker/kicker/core/containerarealayout.h
+++ b/kicker/kicker/core/containerarealayout.h
@@ -21,8 +21,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#ifndef __containerareatqlayout_h__
-#define __containerareatqlayout_h__
+#ifndef __containerarealayout_h__
+#define __containerarealayout_h__
#include <tqlayout.h>
@@ -31,10 +31,10 @@ class ContainerAreaLayout;
class ContainerAreaLayoutItem : public Qt
{
public:
- ContainerAreaLayoutItem(TQLayoutItem* i, ContainerAreaLayout* tqlayout)
+ ContainerAreaLayoutItem(TQLayoutItem* i, ContainerAreaLayout* layout)
: item(i),
m_freeSpaceRatio(0.0),
- m_tqlayout(tqlayout)
+ m_layout(layout)
{}
~ContainerAreaLayoutItem()
@@ -45,18 +45,18 @@ class ContainerAreaLayoutItem : public Qt
bool isStretch() const;
- TQRect tqgeometry() const
- { return item->tqgeometry(); }
- void setGeometry(const TQRect& tqgeometry)
- { item->setGeometry(tqgeometry); }
+ TQRect geometry() const
+ { return item->geometry(); }
+ void setGeometry(const TQRect& geometry)
+ { item->setGeometry(geometry); }
double freeSpaceRatio() const;
void setFreeSpaceRatio(double ratio);
Orientation orientation() const;
- // Relative tqgeometry
- TQRect tqgeometryR() const;
+ // Relative geometry
+ TQRect geometryR() const;
void setGeometryR(const TQRect&);
int widthForHeightR(int w) const;
int widthR() const;
@@ -68,7 +68,7 @@ class ContainerAreaLayoutItem : public Qt
private:
double m_freeSpaceRatio;
- ContainerAreaLayout* m_tqlayout;
+ ContainerAreaLayout* m_layout;
};
class ContainerAreaLayout : public QLayout
@@ -83,8 +83,8 @@ class ContainerAreaLayout : public QLayout
void insertIntoFreeSpace(TQWidget* item, TQPoint insertionPoint);
TQStringList listItems() const;
TQWidget* widgetAt(int index) const;
- TQSize tqsizeHint() const;
- TQSize tqminimumSize() const;
+ TQSize sizeHint() const;
+ TQSize minimumSize() const;
TQLayoutIterator iterator();
void setGeometry(const TQRect& rect);
@@ -100,7 +100,7 @@ class ContainerAreaLayout : public QLayout
void moveContainerSwitch(TQWidget* container, int distance);
int moveContainerPush(TQWidget* container, int distance);
- // Relative tqgeometry
+ // Relative geometry
TQRect transform(const TQRect&) const;
int widthForHeightR(int w) const;
int widthR() const;
diff --git a/kicker/kicker/core/extensionSettings.kcfg b/kicker/kicker/core/extensionSettings.kcfg
index 19d282088..89d60b05a 100644
--- a/kicker/kicker/core/extensionSettings.kcfg
+++ b/kicker/kicker/core/extensionSettings.kcfg
@@ -22,7 +22,7 @@
</entry>
<entry name="Alignment" type="Int" >
- <label>The tqalignment of the panel</label>
+ <label>The alignment of the panel</label>
<default code="true">KPanelExtension::Left</default>
<min>0</min>
<max>2</max>
diff --git a/kicker/kicker/core/extensionmanager.cpp b/kicker/kicker/core/extensionmanager.cpp
index bec297eb9..e0f68ce8a 100644
--- a/kicker/kicker/core/extensionmanager.cpp
+++ b/kicker/kicker/core/extensionmanager.cpp
@@ -371,7 +371,7 @@ void ExtensionManager::updateMenubar()
KMenuBar tmpmenu;
tmpmenu.insertItem("KDE Rocks!");
m_menubarPanel->setSize(KPanelExtension::SizeCustom,
- tmpmenu.tqsizeHint().height());
+ tmpmenu.sizeHint().height());
m_menubarPanel->writeConfig();
emit desktopIconsAreaChanged(desktopIconsArea(m_menubarPanel->xineramaScreen()),
@@ -403,7 +403,7 @@ void ExtensionManager::addExtension( const TQString& desktopFile )
{
e->readConfig();
// as a new panel, the position will be set to the preferred position
- // we just need to make sure this works with the rest of the panel tqlayout
+ // we just need to make sure this works with the rest of the panel layout
e->setPosition(initialPanelPosition(e->position()));
kdDebug(1210)<<"after e->readConfig(): pos="<<e->position()<<endl;
addContainer(e);
@@ -527,7 +527,7 @@ bool ExtensionManager::shouldExclude(int XineramaScreen,
// 1. Exclude panels not on our Xinerama screen
// 2. Exclude panels on the same side of the screen as ourselves that are above us
// 3. Exclude panels on the opposite side of the screen. Breaks down if the user
- // dabbles in insane tqlayouts where a top/bottom or left/right pair overlap?
+ // dabbles in insane layouts where a top/bottom or left/right pair overlap?
// 4. Exclude panels on adjacent sides of the screen that do not overlap with us
if (exclude->winId() == extension->winId())
@@ -554,26 +554,26 @@ bool ExtensionManager::shouldExclude(int XineramaScreen,
{
// Rule 2 Exclusion
if (extension->position() == KPanelExtension::Bottom &&
- exclude->tqgeometry().bottom() == extension->tqgeometry().bottom() &&
- !exclude->tqgeometry().intersects(extension->tqgeometry()))
+ exclude->geometry().bottom() == extension->geometry().bottom() &&
+ !exclude->geometry().intersects(extension->geometry()))
{
return false;
}
else if (extension->position() == KPanelExtension::Top &&
- exclude->tqgeometry().top() == extension->tqgeometry().top() &&
- !exclude->tqgeometry().intersects(extension->tqgeometry()))
+ exclude->geometry().top() == extension->geometry().top() &&
+ !exclude->geometry().intersects(extension->geometry()))
{
return false;
}
else if (extension->position() == KPanelExtension::Left &&
- exclude->tqgeometry().left() == extension->tqgeometry().left() &&
- !exclude->tqgeometry().intersects(extension->tqgeometry()))
+ exclude->geometry().left() == extension->geometry().left() &&
+ !exclude->geometry().intersects(extension->geometry()))
{
return false;
}
else if (extension->position() == KPanelExtension::Right &&
- exclude->tqgeometry().right() == extension->tqgeometry().right() &&
- !exclude->tqgeometry().intersects(extension->tqgeometry()))
+ exclude->geometry().right() == extension->geometry().right() &&
+ !exclude->geometry().intersects(extension->geometry()))
{
return false;
}
@@ -591,28 +591,28 @@ bool ExtensionManager::shouldExclude(int XineramaScreen,
// Rule 4 exclusion
if (extension->position() == KPanelExtension::Bottom)
{
- if (exclude->tqgeometry().bottom() > extension->tqgeometry().top())
+ if (exclude->geometry().bottom() > extension->geometry().top())
{
return lowerInStack;
}
}
else if (extension->position() == KPanelExtension::Top)
{
- if (exclude->tqgeometry().top() < extension->tqgeometry().bottom())
+ if (exclude->geometry().top() < extension->geometry().bottom())
{
return lowerInStack;
}
}
else if (extension->position() == KPanelExtension::Left)
{
- if (exclude->tqgeometry().left() < extension->tqgeometry().right())
+ if (exclude->geometry().left() < extension->geometry().right())
{
return lowerInStack;
}
}
else /* if (extension->position() == KPanelExtension::Right) */
{
- if (exclude->tqgeometry().right() > extension->tqgeometry().left())
+ if (exclude->geometry().right() > extension->geometry().left())
{
return lowerInStack;
}
@@ -702,7 +702,7 @@ void ExtensionManager::reduceArea(TQRect &area, const ExtensionContainer *extens
return;
}
- TQRect geom = extension->initialGeometry(extension->position(), extension->tqalignment(),
+ TQRect geom = extension->initialGeometry(extension->position(), extension->alignment(),
extension->xineramaScreen());
// reduce given area (TQRect) to the space not covered by the given extension
@@ -741,7 +741,7 @@ TQRect ExtensionManager::desktopIconsArea(int screen) const
// This is pretty broken, mixes Xinerama and non-Xinerama multihead
// and generally doesn't seem to be required anyway => ignore screen.
// TQRect area = TQApplication::desktop()->screenGeometry(screen);
- TQRect area = TQApplication::desktop()->tqgeometry();
+ TQRect area = TQApplication::desktop()->geometry();
reduceArea(area, m_mainPanel);
reduceArea(area, m_menubarPanel);
diff --git a/kicker/kicker/core/extensionmanager.h b/kicker/kicker/core/extensionmanager.h
index 346a3a2f2..6de7b35e1 100644
--- a/kicker/kicker/core/extensionmanager.h
+++ b/kicker/kicker/core/extensionmanager.h
@@ -51,7 +51,7 @@ public:
int nextPanelOrder();
// return the space available for all icons on the desktop
- // subtracts all panels from XineramaScreen's tqgeometry
+ // subtracts all panels from XineramaScreen's geometry
TQRect desktopIconsArea(int xineramaScreen) const;
public slots:
diff --git a/kicker/kicker/core/kmenubase.ui b/kicker/kicker/core/kmenubase.ui
index 133ae1467..1adb59b38 100644
--- a/kicker/kicker/core/kmenubase.ui
+++ b/kicker/kicker/core/kmenubase.ui
@@ -4,7 +4,7 @@
<property name="name">
<cstring>KMenu</cstring>
</property>
- <property name="tqgeometry">
+ <property name="geometry">
<rect>
<x>0</x>
<y>0</y>
@@ -25,7 +25,7 @@
<property name="name">
<cstring>m_search</cstring>
</property>
- <property name="tqgeometry">
+ <property name="geometry">
<rect>
<x>20</x>
<y>40</y>
@@ -55,13 +55,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>0</width>
<height>52</height>
</size>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>32767</width>
<height>52</height>
@@ -82,7 +82,7 @@
</property>
<widget class="QLayoutWidget">
<property name="name">
- <cstring>tqlayout18</cstring>
+ <cstring>layout18</cstring>
</property>
<hbox>
<property name="name">
@@ -129,13 +129,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>32</width>
<height>32</height>
@@ -165,7 +165,7 @@
<property name="sizeType">
<enum>Preferred</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -178,7 +178,7 @@
<property name="name">
<cstring>m_footer</cstring>
</property>
- <property name="tqgeometry">
+ <property name="geometry">
<rect>
<x>20</x>
<y>110</y>
@@ -222,7 +222,7 @@
<property name="sizeType">
<enum>MinimumExpanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>10</width>
<height>20</height>
@@ -241,7 +241,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>90</width>
<height>24</height>
@@ -270,7 +270,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>14</width>
<height>20</height>
@@ -293,7 +293,7 @@
<functions>
<function access="private" specifier="non virtual">init()</function>
</functions>
-<tqlayoutdefaults spacing="6" margin="11"/>
+<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcombobox.h</includehint>
</includehints>
diff --git a/kicker/kicker/core/menumanager.cpp b/kicker/kicker/core/menumanager.cpp
index fad16ac42..61110de14 100644
--- a/kicker/kicker/core/menumanager.cpp
+++ b/kicker/kicker/core/menumanager.cpp
@@ -153,11 +153,11 @@ void MenuManager::kmenuAccelActivated()
TQDesktopWidget* desktop = KApplication::desktop();
TQRect r;
if (desktop->numScreens() < 2)
- r = desktop->tqgeometry();
+ r = desktop->geometry();
else
r = desktop->screenGeometry(desktop->screenNumber(TQCursor::pos()));
- // kMenu->rect() is not valid before showing, use tqsizeHint()
- p = r.center() - TQRect( TQPoint( 0, 0 ), m_kmenu->tqsizeHint()).center();
+ // kMenu->rect() is not valid before showing, use sizeHint()
+ p = r.center() - TQRect( TQPoint( 0, 0 ), m_kmenu->sizeHint()).center();
m_kmenu->popup(p);
// when the cursor is in the area where the menu pops up,
@@ -170,8 +170,8 @@ void MenuManager::kmenuAccelActivated()
{
// We need the kmenu's size to place it at the right position.
// We cannot rely on the popup menu's current size(), if it wasn't
- // shown before, so we resize it here according to its tqsizeHint().
- const TQSize size = m_kmenu->tqsizeHint();
+ // shown before, so we resize it here according to its sizeHint().
+ const TQSize size = m_kmenu->sizeHint();
m_kmenu->resize(size.width(),size.height());
PanelPopupButton* button = findKButtonFor(m_kmenu->widget());
@@ -188,7 +188,7 @@ void MenuManager::kmenuAccelActivated()
ext->unhideIfHidden();
// make sure it's unhidden before we use it to figure out
// where to popup
- tqApp->processEvents();
+ qApp->processEvents();
break;
}
diff --git a/kicker/kicker/core/panelextension.cpp b/kicker/kicker/core/panelextension.cpp
index 0b96d4b1f..2bd70c82b 100644
--- a/kicker/kicker/core/panelextension.cpp
+++ b/kicker/kicker/core/panelextension.cpp
@@ -67,12 +67,12 @@ PanelExtension::PanelExtension(const TQString& configFile, TQWidget *parent, con
setAcceptDrops(!Kicker::the()->isImmutable());
setCustomMenu(opMenu());
- TQVBoxLayout* _tqlayout = new TQVBoxLayout(this);
+ TQVBoxLayout* _layout = new TQVBoxLayout(this);
// container area
_containerArea = new ContainerArea( config(), this, opMenu() );
connect(_containerArea, TQT_SIGNAL(maintainFocus(bool)), this, TQT_SIGNAL(maintainFocus(bool)));
- _tqlayout->addWidget(_containerArea);
+ _layout->addWidget(_containerArea);
_containerArea->viewport()->installEventFilter(this);
_containerArea->configure();
@@ -100,7 +100,7 @@ void PanelExtension::populateContainerArea()
{
_containerArea->show();
- if (ExtensionManager::the()->isMainPanel(tqtopLevelWidget()))
+ if (ExtensionManager::the()->isMainPanel(topLevelWidget()))
{
setObjId("Panel");
_containerArea->initialize(true);
@@ -139,7 +139,7 @@ void PanelExtension::positionChange(Position p)
_containerArea->setPosition(p);
}
-TQSize PanelExtension::tqsizeHint(Position p, TQSize maxSize) const
+TQSize PanelExtension::sizeHint(Position p, TQSize maxSize) const
{
TQSize size;
diff --git a/kicker/kicker/core/panelextension.h b/kicker/kicker/core/panelextension.h
index 61e6c229c..c7882291f 100644
--- a/kicker/kicker/core/panelextension.h
+++ b/kicker/kicker/core/panelextension.h
@@ -80,7 +80,7 @@ k_dcop:
void configure(); // KDE4: remove, moved to Kikcker
public:
- TQSize tqsizeHint(Position, TQSize maxSize) const;
+ TQSize sizeHint(Position, TQSize maxSize) const;
Position preferedPosition() const { return Bottom; }
bool eventFilter( TQObject *, TQEvent * );
diff --git a/kicker/kicker/core/userrectsel.cpp b/kicker/kicker/core/userrectsel.cpp
index 553f5ad09..d4b54f04a 100644
--- a/kicker/kicker/core/userrectsel.cpp
+++ b/kicker/kicker/core/userrectsel.cpp
@@ -48,7 +48,7 @@ void UserRectSel::mouseReleaseEvent(TQMouseEvent * e)
{
if (e->button() == LeftButton)
{
- tqApp->exit_loop();
+ qApp->exit_loop();
}
}
@@ -138,10 +138,10 @@ UserRectSel::PanelStrut UserRectSel::select(const RectList& rects, const TQPoint
sel.show();
sel.grabMouse();
sel.paintCurrent();
- tqApp->enter_loop();
+ qApp->enter_loop();
sel.paintCurrent();
sel.releaseMouse();
- tqApp->syncX();
+ qApp->syncX();
return sel.current;
}
diff --git a/kicker/kicker/core/userrectsel.h b/kicker/kicker/core/userrectsel.h
index b770f7409..63ba47fd5 100644
--- a/kicker/kicker/core/userrectsel.h
+++ b/kicker/kicker/core/userrectsel.h
@@ -43,17 +43,17 @@ class UserRectSel : public QWidget
PanelStrut()
: m_screen(-1),
m_pos(KPanelExtension::Bottom),
- m_tqalignment(KPanelExtension::LeftTop)
+ m_alignment(KPanelExtension::LeftTop)
{
}
PanelStrut(const TQRect& rect, int XineramaScreen,
KPanelExtension::Position pos,
- KPanelExtension::Alignment tqalignment)
+ KPanelExtension::Alignment alignment)
: m_rect(rect),
m_screen(XineramaScreen),
m_pos(pos),
- m_tqalignment(tqalignment)
+ m_alignment(alignment)
{
}
@@ -61,7 +61,7 @@ class UserRectSel : public QWidget
{
return m_screen == rhs.m_screen &&
m_pos == rhs.m_pos &&
- m_tqalignment == rhs.m_tqalignment;
+ m_alignment == rhs.m_alignment;
}
bool operator!=(const PanelStrut& rhs)
@@ -72,7 +72,7 @@ class UserRectSel : public QWidget
TQRect m_rect;
int m_screen;
KPanelExtension::Position m_pos;
- KPanelExtension::Alignment m_tqalignment;
+ KPanelExtension::Alignment m_alignment;
};
typedef TQValueVector<PanelStrut> RectList;
diff --git a/kicker/kicker/interfaces/kickoff-search-plugin.h b/kicker/kicker/interfaces/kickoff-search-plugin.h
index 497ed0e2b..e91d079e7 100644
--- a/kicker/kicker/interfaces/kickoff-search-plugin.h
+++ b/kicker/kicker/interfaces/kickoff-search-plugin.h
@@ -82,7 +82,7 @@ public:
TQString quotedPath () const
{
- return uri.path ().tqreplace ('"', "\\\"");
+ return uri.path ().replace ('"', "\\\"");
}
};
diff --git a/kicker/kicker/kicker-3.4-reverseLayout.cpp b/kicker/kicker/kicker-3.4-reverseLayout.cpp
index bc3baa9e1..97a35aff6 100644
--- a/kicker/kicker/kicker-3.4-reverseLayout.cpp
+++ b/kicker/kicker/kicker-3.4-reverseLayout.cpp
@@ -88,7 +88,7 @@ int main(int argc, char** argv)
applets[*it].freeSpace = 1 - applets[*it].freeSpace;
// Take care of stretchable applets.
- if (stretchableApplets.tqcontains(applets[*it].desktopFile))
+ if (stretchableApplets.contains(applets[*it].desktopFile))
{
if (it != appletIds.begin())
{
diff --git a/kicker/kicker/plugins/beaglesearch.cpp b/kicker/kicker/plugins/beaglesearch.cpp
index f75f719ab..9f86c8fbd 100644
--- a/kicker/kicker/plugins/beaglesearch.cpp
+++ b/kicker/kicker/plugins/beaglesearch.cpp
@@ -347,7 +347,7 @@ BeagleUtil::timestringToBeagleTimestamp(TQString timestring)
//kdDebug () << "datetime string:" << timestring << endl;
// FIXME: error check timestring format
if (timestring.isNull () || timestring.stripWhiteSpace () == "" || timestring.length() != 8 )
- return beagle_timestamp_new_from_unix_time (TQDateTime::tqcurrentDateTime ().toTime_t ());
+ return beagle_timestamp_new_from_unix_time (TQDateTime::currentDateTime ().toTime_t ());
//TQDateTime dt = TQDateTime::fromString (timestring, Qt::ISODate);
struct tm tm_time;
time_t timet_time;
diff --git a/kicker/kicker/plugins/kickoff-beagle-plugin.cpp b/kicker/kicker/plugins/kickoff-beagle-plugin.cpp
index aed74ed43..3cad77ca4 100644
--- a/kicker/kicker/plugins/kickoff-beagle-plugin.cpp
+++ b/kicker/kicker/plugins/kickoff-beagle-plugin.cpp
@@ -315,7 +315,7 @@ HitMenuItem *KickoffBeaglePlugin::hitToHitMenuItem (int category, Hit *hit)
case WEBHIST:
uri = hit->getUri ();
title = (*hit) [dc_title];
- title = title.tqreplace(TQRegExp("\n")," ");
+ title = title.replace(TQRegExp("\n")," ");
mimetype = "text/html";
if (title.isEmpty () || title.stripWhiteSpace ().isEmpty ()) {
title = uri.prettyURL ();
diff --git a/kicker/kicker/ui/addapplet.cpp b/kicker/kicker/ui/addapplet.cpp
index 72c4f6be9..796920ed4 100644
--- a/kicker/kicker/ui/addapplet.cpp
+++ b/kicker/kicker/ui/addapplet.cpp
@@ -289,9 +289,9 @@ void AddAppletDialog::resizeAppletView()
for (int i = 0; i < 3; i++)
{
- m_appletBox->tqlayout()->activate();
+ m_appletBox->layout()->activate();
w = v->visibleWidth();
- h = m_appletBox->tqlayout()->tqminimumSize().height();
+ h = m_appletBox->layout()->minimumSize().height();
v->resizeContents(w, QMAX(h, v->visibleHeight()));
if (w == m_appletBox->width() && h == m_appletBox->height())
break;
@@ -314,8 +314,8 @@ void AddAppletDialog::populateApplets()
m_appletBox->setPaletteBackgroundColor(KGlobalSettings::baseColor());
m_mainWidget->appletScrollView->addChild(m_appletBox, 0, 0);
m_appletBox->show();
- TQVBoxLayout* tqlayout = new TQVBoxLayout(m_appletBox);
- tqlayout->setMargin(0);
+ TQVBoxLayout* layout = new TQVBoxLayout(m_appletBox);
+ layout->setMargin(0);
m_mainWidget->appletScrollView->installEventFilter(this);
@@ -367,7 +367,7 @@ void AddAppletDialog::populateApplets()
itemWidget->hide();
}
- tqlayout->insertWidget(i, itemWidget);
+ layout->insertWidget(i, itemWidget);
m_appletWidgetList.append(itemWidget);
setTabOrder(prevTabWidget, itemWidget);
prevTabWidget = itemWidget;
@@ -456,7 +456,7 @@ void AddAppletDialog::addApplet(AppletWidget* applet)
if (appletContainer)
{
ExtensionContainer* ec =
- dynamic_cast<ExtensionContainer*>(m_containerArea->tqtopLevelWidget());
+ dynamic_cast<ExtensionContainer*>(m_containerArea->topLevelWidget());
if (ec)
{
@@ -484,8 +484,8 @@ bool AddAppletDialog::appletMatchesSearch(const AppletWidget* w,
return (m_selectedType == AppletInfo::Undefined ||
w->info().type() & m_selectedType) &&
- (w->info().name().tqcontains(s, false) ||
- w->info().comment().tqcontains(s, false));
+ (w->info().name().contains(s, false) ||
+ w->info().comment().contains(s, false));
}
void AddAppletDialog::delayedSearch()
diff --git a/kicker/kicker/ui/addapplet_mnu.cpp b/kicker/kicker/ui/addapplet_mnu.cpp
index 19bbf0f11..6d5c4482f 100644
--- a/kicker/kicker/ui/addapplet_mnu.cpp
+++ b/kicker/kicker/ui/addapplet_mnu.cpp
@@ -54,11 +54,11 @@ void PanelAddAppletMenu::slotAboutToShow()
if (ai.icon().isEmpty() || ai.icon() == "unknown")
{
- insertItem(ai.name().tqreplace( "&", "&&" ), i);
+ insertItem(ai.name().replace( "&", "&&" ), i);
}
else
{
- insertItem(SmallIconSet(ai.icon()), ai.name().tqreplace( "&", "&&" ), i);
+ insertItem(SmallIconSet(ai.icon()), ai.name().replace( "&", "&&" ), i);
}
if (ai.isUniqueApplet() && PluginManager::the()->hasInstance(ai))
diff --git a/kicker/kicker/ui/addappletvisualfeedback.cpp b/kicker/kicker/ui/addappletvisualfeedback.cpp
index 8c6eed625..acd82a066 100644
--- a/kicker/kicker/ui/addappletvisualfeedback.cpp
+++ b/kicker/kicker/ui/addappletvisualfeedback.cpp
@@ -71,7 +71,7 @@ AddAppletVisualFeedback::AddAppletVisualFeedback(AppletWidget* widget,
displayInternal();
m_destination = KickerLib::popupPosition(m_direction, this, m_target);
- TQPoint startAt = widget->itemPixmap->tqgeometry().topLeft();
+ TQPoint startAt = widget->itemPixmap->geometry().topLeft();
startAt = widget->itemPixmap->mapToGlobal(startAt);
move(startAt);
@@ -107,15 +107,15 @@ void AddAppletVisualFeedback::mousePressEvent(TQMouseEvent *)
void AddAppletVisualFeedback::makeMask()
{
- TQPainter tqmaskPainter(&m_tqmask);
+ TQPainter maskPainter(&m_mask);
- m_tqmask.fill(Qt::black);
+ m_mask.fill(Qt::black);
- tqmaskPainter.setBrush(Qt::white);
- tqmaskPainter.setPen(Qt::white);
- tqmaskPainter.drawRoundRect(m_tqmask.rect(), 1600 / m_tqmask.rect().width(),
- 1600 / m_tqmask.rect().height());
- setMask(m_tqmask);
+ maskPainter.setBrush(Qt::white);
+ maskPainter.setPen(Qt::white);
+ maskPainter.drawRoundRect(m_mask.rect(), 1600 / m_mask.rect().width(),
+ 1600 / m_mask.rect().height());
+ setMask(m_mask);
}
void AddAppletVisualFeedback::displayInternal()
@@ -141,8 +141,8 @@ void AddAppletVisualFeedback::displayInternal()
width += textRect.width() + margin;
}
- // resize pixmap, tqmask and widget
- m_tqmask.resize(width, height);
+ // resize pixmap, mask and widget
+ m_mask.resize(width, height);
m_pixmap.resize(width, height);
resize(width, height);
@@ -151,13 +151,13 @@ void AddAppletVisualFeedback::displayInternal()
move(KickerLib::popupPosition(m_direction, this, m_target));
}
- // create and set transparency tqmask
+ // create and set transparency mask
makeMask();
// draw background
TQPainter bufferPainter(&m_pixmap);
bufferPainter.setPen(Qt::black);
- bufferPainter.setBrush(tqcolorGroup().background());
+ bufferPainter.setBrush(colorGroup().background());
bufferPainter.drawRoundRect(0, 0, width, height,
1600 / width, 1600 / height);
@@ -175,14 +175,14 @@ void AddAppletVisualFeedback::displayInternal()
int textY = (height - textRect.height()) / 2;
// draw text shadow
- TQColorGroup cg = tqcolorGroup();
+ TQColorGroup cg = colorGroup();
cg.setColor(TQColorGroup::Text, cg.background().dark(115));
int shadowOffset = TQApplication::reverseLayout() ? -1 : 1;
m_richText->draw(&bufferPainter, 5 + textX + shadowOffset,
textY + 1, TQRect(), cg);
// draw text
- cg = tqcolorGroup();
+ cg = colorGroup();
m_richText->draw(&bufferPainter, 5 + textX, textY, rect(), cg);
}
}
@@ -194,7 +194,7 @@ void AddAppletVisualFeedback::swoopCloser()
return;
}
- TQPoint loc = tqgeometry().topLeft();
+ TQPoint loc = geometry().topLeft();
bool isLeft = m_destination.x() > loc.x();
if (loc.x() != m_destination.x())
{
@@ -225,7 +225,7 @@ void AddAppletVisualFeedback::swoopCloser()
void AddAppletVisualFeedback::internalUpdate()
{
m_dirty = true;
- tqrepaint(false);
+ repaint(false);
}
#include "addappletvisualfeedback.moc"
diff --git a/kicker/kicker/ui/addappletvisualfeedback.h b/kicker/kicker/ui/addappletvisualfeedback.h
index f4ac90213..02899ee36 100644
--- a/kicker/kicker/ui/addappletvisualfeedback.h
+++ b/kicker/kicker/ui/addappletvisualfeedback.h
@@ -62,7 +62,7 @@ class AddAppletVisualFeedback : QWidget
private:
const TQWidget* m_target;
KPanelApplet::Direction m_direction;
- TQBitmap m_tqmask;
+ TQBitmap m_mask;
TQPixmap m_pixmap;
TQPixmap m_icon;
TQSimpleRichText* m_richText;
diff --git a/kicker/kicker/ui/addbutton_mnu.cpp b/kicker/kicker/ui/addbutton_mnu.cpp
index c04a832e6..02c4718d4 100644
--- a/kicker/kicker/ui/addbutton_mnu.cpp
+++ b/kicker/kicker/ui/addbutton_mnu.cpp
@@ -46,7 +46,7 @@ PanelAddButtonMenu::PanelAddButtonMenu(ContainerArea* cArea, TQWidget * parent,
void PanelAddButtonMenu::slotExec(int id)
{
- if (!entryMap_.tqcontains(id))
+ if (!entryMap_.contains(id))
return;
KSycocaEntry * e = entryMap_[id];
diff --git a/kicker/kicker/ui/addextension_mnu.cpp b/kicker/kicker/ui/addextension_mnu.cpp
index 325897a8c..b22187443 100644
--- a/kicker/kicker/ui/addextension_mnu.cpp
+++ b/kicker/kicker/ui/addextension_mnu.cpp
@@ -44,7 +44,7 @@ void PanelAddExtensionMenu::slotAboutToShow()
AppletInfo::List::const_iterator it = extensions.constBegin();
for( int i = 0; it != extensions.constEnd(); ++it, ++i ) {
const AppletInfo& ai = (*it);
- insertItem( ai.name().tqreplace( "&", "&&" ), i );
+ insertItem( ai.name().replace( "&", "&&" ), i );
if ( ai.isUniqueApplet() && PluginManager::the()->hasInstance(ai) ) {
setItemEnabled( i, false );
setItemChecked( i, true );
diff --git a/kicker/kicker/ui/appletitem.ui b/kicker/kicker/ui/appletitem.ui
index 32996941b..d9cc2d9b0 100644
--- a/kicker/kicker/ui/appletitem.ui
+++ b/kicker/kicker/ui/appletitem.ui
@@ -4,7 +4,7 @@
<property name="name">
<cstring>AppletItem</cstring>
</property>
- <property name="tqgeometry">
+ <property name="geometry">
<rect>
<x>0</x>
<y>0</y>
@@ -20,13 +20,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>32767</width>
<height>80</height>
@@ -41,7 +41,7 @@
</property>
<widget class="QLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>tqlayout11</cstring>
+ <cstring>layout11</cstring>
</property>
<vbox>
<property name="name">
@@ -65,7 +65,7 @@
<property name="textFormat">
<enum>RichText</enum>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@@ -87,7 +87,7 @@
<property name="textFormat">
<enum>RichText</enum>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@@ -95,7 +95,7 @@
</widget>
<widget class="QLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<vbox>
<property name="name">
@@ -105,7 +105,7 @@
<property name="name">
<cstring>itemPixmap</cstring>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>64</width>
<height>64</height>
@@ -117,7 +117,7 @@
<property name="text">
<string></string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignTop</set>
</property>
</widget>
@@ -125,5 +125,5 @@
</widget>
</grid>
</widget>
-<tqlayoutdefaults spacing="6" margin="11"/>
+<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kicker/kicker/ui/appletop_mnu.cpp b/kicker/kicker/ui/appletop_mnu.cpp
index 2e0d3e405..e0e162d33 100644
--- a/kicker/kicker/ui/appletop_mnu.cpp
+++ b/kicker/kicker/ui/appletop_mnu.cpp
@@ -41,7 +41,7 @@ PanelAppletOpMenu::PanelAppletOpMenu(int actions, TQPopupMenu *opMenu, const TQP
bool isButton = (parent && parent->inherits("ButtonContainer"));
bool isMenu = false;
TQString titleText = title;
- titleText = titleText.tqreplace('&', "&&");
+ titleText = titleText.replace('&', "&&");
if (isButton)
{
isMenu = static_cast<ButtonContainer*>(parent)->isAMenu();
diff --git a/kicker/kicker/ui/appletview.ui b/kicker/kicker/ui/appletview.ui
index 4232b9dcc..a2fa1e91b 100644
--- a/kicker/kicker/ui/appletview.ui
+++ b/kicker/kicker/ui/appletview.ui
@@ -4,7 +4,7 @@
<property name="name">
<cstring>AppletView</cstring>
</property>
- <property name="tqgeometry">
+ <property name="geometry">
<rect>
<x>0</x>
<y>0</y>
@@ -21,7 +21,7 @@
</property>
<widget class="QLayoutWidget">
<property name="name">
- <cstring>tqlayout8</cstring>
+ <cstring>layout8</cstring>
</property>
<hbox>
<property name="name">
@@ -110,7 +110,7 @@
<verstretch>1</verstretch>
</sizepolicy>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>32767</width>
<height>32767</height>
@@ -125,7 +125,7 @@
</widget>
<widget class="QLayoutWidget">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -141,7 +141,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>284</width>
<height>20</height>
@@ -195,7 +195,7 @@
<tabstop>appletSearch</tabstop>
<tabstop>appletFilter</tabstop>
</tabstops>
-<tqlayoutdefaults spacing="6" margin="11"/>
+<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>qscrollview.h</includehint>
<includehint>kpushbutton.h</includehint>
diff --git a/kicker/kicker/ui/browser_mnu.cpp b/kicker/kicker/ui/browser_mnu.cpp
index e62322e35..2250475b4 100644
--- a/kicker/kicker/ui/browser_mnu.cpp
+++ b/kicker/kicker/ui/browser_mnu.cpp
@@ -104,7 +104,7 @@ void PanelBrowserMenu::initialize()
setInitialized(true);
// start watching if not already done
- if (!_dirWatch.tqcontains(path()))
+ if (!_dirWatch.contains(path()))
_dirWatch.addDir( path() );
// setup icon map
@@ -244,7 +244,7 @@ void PanelBrowserMenu::initialize()
title = c.readEntry("Name", title);
TQString s = c.readEntry("Icon");
- if(!_icons->tqcontains(s)) {
+ if(!_icons->contains(s)) {
icon = KGlobal::iconLoader()->loadIcon(s, KIcon::Small, KIcon::SizeSmall,
KIcon::DefaultState, 0, true);
@@ -344,7 +344,7 @@ void PanelBrowserMenu::append(const TQPixmap &pixmap, const TQString &title, con
// avoid &'s being converted to accelerators
TQString newTitle = title;
newTitle = KStringHandler::cEmSqueeze( newTitle, fontMetrics(), 20 );
- newTitle.tqreplace("&", "&&");
+ newTitle.replace("&", "&&");
// insert menu item
int id = insertItem(pixmap, newTitle);
@@ -362,7 +362,7 @@ void PanelBrowserMenu::append(const TQPixmap &pixmap, const TQString &title, Pan
// avoid &'s being converted to accelerators
TQString newTitle = title;
newTitle = KStringHandler::cEmSqueeze( newTitle, fontMetrics(), 20 );
- newTitle.tqreplace("&", "&&");
+ newTitle.replace("&", "&&");
// insert submenu
insertItem(pixmap, newTitle, subMenu);
@@ -388,7 +388,7 @@ void PanelBrowserMenu::mouseMoveEvent(TQMouseEvent *e)
// get id
int id = idAt(_lastpress);
- if(!_filemap.tqcontains(id)) return;
+ if(!_filemap.contains(id)) return;
// reset _lastpress
_lastpress = TQPoint(-1, -1);
@@ -429,7 +429,7 @@ void PanelBrowserMenu::dragMoveEvent(TQDragMoveEvent *ev)
void PanelBrowserMenu::dropEvent( TQDropEvent *ev )
{
KURL u( path() );
- KFileItem item( u, TQString::tqfromLatin1( "inode/directory" ), KFileItem::Unknown );
+ KFileItem item( u, TQString::fromLatin1( "inode/directory" ), KFileItem::Unknown );
KonqOperations::doDrop( &item, u, ev, this );
KPanelMenu::dropEvent(ev);
// ### TODO: Update list
@@ -439,7 +439,7 @@ void PanelBrowserMenu::slotExec(int id)
{
kapp->propagateSessionManager();
- if(!_filemap.tqcontains(id)) return;
+ if(!_filemap.contains(id)) return;
KURL url;
url.setPath(path() + "/" + _filemap[id]);
@@ -494,9 +494,9 @@ void PanelBrowserMenu::slotMimeCheck()
// kdDebug() << url.url() << ": " << icon << endl;
file = KStringHandler::cEmSqueeze( file, fontMetrics(), 20 );
- file.tqreplace("&", "&&");
+ file.replace("&", "&&");
- if(!_icons->tqcontains(icon)) {
+ if(!_icons->contains(icon)) {
TQPixmap pm = SmallIcon(icon);
if( pm.height() > 16 )
{
@@ -514,7 +514,7 @@ void PanelBrowserMenu::slotMimeCheck()
void PanelBrowserMenu::slotClear()
{
// no need to watch any further
- if (_dirWatch.tqcontains(path()))
+ if (_dirWatch.contains(path()))
_dirWatch.removeDir( path() );
// don't change menu if already visible
diff --git a/kicker/kicker/ui/clicklineedit.cpp b/kicker/kicker/ui/clicklineedit.cpp
index 79f2eaf1f..52cb8776d 100644
--- a/kicker/kicker/ui/clicklineedit.cpp
+++ b/kicker/kicker/ui/clicklineedit.cpp
@@ -39,13 +39,13 @@ ClickLineEdit::~ClickLineEdit() {}
void ClickLineEdit::setClickMessage( const TQString &msg )
{
mClickMessage = msg;
- tqrepaint();
+ repaint();
}
void ClickLineEdit::setText( const TQString &txt )
{
mDrawClickMsg = txt.isEmpty();
- tqrepaint();
+ repaint();
KLineEdit::setText( txt );
}
@@ -67,7 +67,7 @@ void ClickLineEdit::focusInEvent( TQFocusEvent *ev )
if ( mDrawClickMsg == true )
{
mDrawClickMsg = false;
- tqrepaint();
+ repaint();
}
TQLineEdit::focusInEvent( ev );
}
@@ -77,7 +77,7 @@ void ClickLineEdit::focusOutEvent( TQFocusEvent *ev )
if ( text().isEmpty() )
{
mDrawClickMsg = true;
- tqrepaint();
+ repaint();
}
TQLineEdit::focusOutEvent( ev );
}
diff --git a/kicker/kicker/ui/clicklineedit.h b/kicker/kicker/ui/clicklineedit.h
index 8f5bacd81..cadafae4c 100644
--- a/kicker/kicker/ui/clicklineedit.h
+++ b/kicker/kicker/ui/clicklineedit.h
@@ -27,7 +27,7 @@
namespace KPIM {
/**
- This class provides a KLineEdit which tqcontains a greyed-out hinting
+ This class provides a KLineEdit which contains a greyed-out hinting
text as long as the user didn't enter any text
@short LineEdit with customizable "Click here" text
diff --git a/kicker/kicker/ui/exe_dlg.cpp b/kicker/kicker/ui/exe_dlg.cpp
index 4fa39c677..cb0d42c56 100644
--- a/kicker/kicker/ui/exe_dlg.cpp
+++ b/kicker/kicker/ui/exe_dlg.cpp
@@ -78,8 +78,8 @@ PanelExeDialog::PanelExeDialog(const TQString& title, const TQString& descriptio
this, TQT_SLOT(slotIconChanged(TQString)));
// leave decent space for the commandline
- resize(tqsizeHint().width() > 300 ? tqsizeHint().width() : 300,
- tqsizeHint().height());
+ resize(sizeHint().width() > 300 ? sizeHint().width() : 300,
+ sizeHint().height());
}
void PanelExeDialog::slotOk()
@@ -174,7 +174,7 @@ void PanelExeDialog::slotTextChanged(const TQString &str)
void PanelExeDialog::slotReturnPressed()
{
- if (m_partialPath2full.tqcontains(ui->m_exec->url()))
+ if (m_partialPath2full.contains(ui->m_exec->url()))
ui->m_exec->setURL(m_partialPath2full[ui->m_exec->url()]);
}
diff --git a/kicker/kicker/ui/flipscrollview.cpp b/kicker/kicker/ui/flipscrollview.cpp
index fb5cfd422..ae96ebcaa 100644
--- a/kicker/kicker/ui/flipscrollview.cpp
+++ b/kicker/kicker/ui/flipscrollview.cpp
@@ -57,7 +57,7 @@ void BackFrame::drawContents( TQPainter *p )
{
TQColor gray( 230, 230, 230 );
if ( mouse_inside )
- p->fillRect( 3, 3, width() - 6, height() - 6, tqcolorGroup().color( TQColorGroup::Highlight ) );
+ p->fillRect( 3, 3, width() - 6, height() - 6, colorGroup().color( TQColorGroup::Highlight ) );
else
p->fillRect( 3, 3, width() - 6, height() - 6, gray );
p->setPen( gray.dark(110) );
@@ -270,7 +270,7 @@ void FlipScrollView::slotScrollTimer()
if (!mSelectMenuPath.isEmpty()) {
if (mSelectMenuPath=="kicker:/goup/") {
currentView()->setSelected(currentView()->firstChild(),true);
- currentView()->firstChild()->tqrepaint();
+ currentView()->firstChild()->repaint();
}
else {
TQListViewItem * child = currentView()->firstChild();
@@ -278,8 +278,8 @@ void FlipScrollView::slotScrollTimer()
KMenuItem* kitem = dynamic_cast<KMenuItem*>(child);
if (kitem && kitem->menuPath()==mSelectMenuPath) {
currentView()->setSelected(child,true);
- kdDebug() << "child tqrepaint\n";
- child->tqrepaint();
+ kdDebug() << "child repaint\n";
+ child->repaint();
break;
}
child = child->nextSibling();
diff --git a/kicker/kicker/ui/hidebutton.cpp b/kicker/kicker/ui/hidebutton.cpp
index e3325bfe3..a73e0a48d 100644
--- a/kicker/kicker/ui/hidebutton.cpp
+++ b/kicker/kicker/ui/hidebutton.cpp
@@ -51,22 +51,22 @@ void HideButton::drawButton(TQPainter *p)
{
if (m_arrow == Qt::LeftArrow)
{
- p->setPen(tqcolorGroup().mid());
+ p->setPen(colorGroup().mid());
p->drawLine(width()-1, 0, width()-1, height());
}
else if (m_arrow == Qt::RightArrow)
{
- p->setPen(tqcolorGroup().mid());
+ p->setPen(colorGroup().mid());
p->drawLine(0, 0, 0, height());
}
else if (m_arrow == Qt::UpArrow)
{
- p->setPen(tqcolorGroup().mid());
+ p->setPen(colorGroup().mid());
p->drawLine(0, height()-1, width(), height()-1);
}
else if (m_arrow == Qt::DownArrow)
{
- p->setPen(tqcolorGroup().mid());
+ p->setPen(colorGroup().mid());
p->drawLine(0, 0, width(), 0);
}
@@ -173,14 +173,14 @@ void HideButton::slotIconChanged(int group)
}
generateIcons();
- tqrepaint(false);
+ repaint(false);
}
void HideButton::enterEvent(TQEvent *e)
{
m_highlight = true;
- tqrepaint(false);
+ repaint(false);
TQButton::enterEvent(e);
}
@@ -188,7 +188,7 @@ void HideButton::leaveEvent(TQEvent *e)
{
m_highlight = false;
- tqrepaint(false);
+ repaint(false);
TQButton::enterEvent(e);
}
diff --git a/kicker/kicker/ui/itemview.cpp b/kicker/kicker/ui/itemview.cpp
index 86033ae98..dcb4760c1 100644
--- a/kicker/kicker/ui/itemview.cpp
+++ b/kicker/kicker/ui/itemview.cpp
@@ -99,7 +99,7 @@ static double pointSize( double pixelSize, TQPaintDevice *w )
static int pixelSize( double pixelSize, TQPaintDevice *w )
{
- return tqRound( pixelSize * TQPaintDevice::x11AppDpiY( w->x11Screen () ) / 72. );
+ return qRound( pixelSize * TQPaintDevice::x11AppDpiY( w->x11Screen () ) / 72. );
}
void KMenuItem::init()
@@ -145,7 +145,7 @@ void KMenuItem::setIcon(const TQString& icon, int size)
void KMenuItem::setHasChildren( bool flag )
{
m_has_children = flag;
- tqrepaint();
+ repaint();
}
void KMenuItem::setup()
@@ -166,7 +166,7 @@ void KMenuItem::setup()
void KMenuItem::paintCell(TQPainter* p, const TQColorGroup & cg, int column, int width, int align)
{
ItemView *listview = static_cast<ItemView*>( listView() );
- int bottom = listView()->tqitemRect( this ).bottom();
+ int bottom = listView()->itemRect( this ).bottom();
int diff = bottom - listView()->viewport()->height();
KPixmap pm;
@@ -197,7 +197,7 @@ void KMenuItem::paintCell(TQPainter* p, const TQColorGroup & cg, int column, int
else
listview->m_lastOne = static_cast<KMenuItem*>( itemBelow() );
listview->m_old_contentY = -1;
- tqrepaint();
+ repaint();
}
}
}
@@ -315,7 +315,7 @@ void KMenuItem::paintCellInter(TQPainter* p, const TQColorGroup & cg, int column
pp.fillRect( 0, 0, off.width(), off.height(), backg );
TQColor myColor = cg.color( TQColorGroup::Text ).light( 200 );
- if ( tqGray( myColor.rgb() ) == 0 )
+ if ( qGray( myColor.rgb() ) == 0 )
myColor = TQColor( 100, 100, 110 );
pp.setPen( myColor );
pp.setPen( isSelected() ? cg.color( TQColorGroup::Mid ) : myColor );
@@ -350,7 +350,7 @@ void KMenuItem::paintCellInter(TQPainter* p, const TQColorGroup & cg, int column
{
// the listview caches paint events
m_old_width = width;
- tqrepaint();
+ repaint();
}
}
@@ -385,7 +385,7 @@ void KMenuItemSeparator::setLink( const TQString &text, const TQString &url )
bool KMenuItemSeparator::hitsLink( const TQPoint &pos )
{
- return m_link_rect.tqcontains( pos );
+ return m_link_rect.contains( pos );
}
void KMenuItemSeparator::preparePixmap( int width )
@@ -424,7 +424,7 @@ void KMenuItemSeparator::paintCell(TQPainter* p, const TQColorGroup & cg, int co
f.setPointSize( 8 + KickerSettings::kickoffFontPointSizeOffset() );
p->setFont( f );
TQColor myColor = cg.color( TQColorGroup::Text ).light( 200 );
- if ( tqGray( myColor.rgb() ) == 0 )
+ if ( qGray( myColor.rgb() ) == 0 )
myColor = TQColor( 100, 100, 110 );
p->setPen( myColor );
int twidth = p->fontMetrics().width(text(0));
@@ -528,7 +528,7 @@ void KMenuItemHeader::paintCell(TQPainter* p, const TQColorGroup & cg, int , int
int r = left_margin + margin * 2;
const int min_font_size = 7;
- int title_font_pixelSize = tqRound( pixelSize( QMAX( pointSize( 12, listView() ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size + 1 ), listView() ) );
+ int title_font_pixelSize = qRound( pixelSize( QMAX( pointSize( 12, listView() ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size + 1 ), listView() ) );
TQFont f1 = p->font();
f1.setPixelSize( title_font_pixelSize );
@@ -608,7 +608,7 @@ void ItemViewTip::maybeTip( const TQPoint &pos )
if ( item->toolTip().isNull() )
return;
- TQRect r = view->tqitemRect( item );
+ TQRect r = view->itemRect( item );
int headerPos = view->header()->sectionPos( 0 );
r.setLeft( headerPos );
r.setRight( headerPos + view->header()->sectionSize( 0 ) );
@@ -762,7 +762,7 @@ void ItemView::slotMoveContent()
TQListViewItemIterator it( this );
while ( it.current() ) {
if ( !dynamic_cast<KMenuSpacer*>( it.current() ) && !it.current()->parent() && it.current()->isVisible() ) {
- it.current()->tqinvalidateHeight();
+ it.current()->invalidateHeight();
item_height += it.current()->totalHeight();
}
++it;
@@ -915,7 +915,7 @@ void ItemView::contentsMousePressEvent ( TQMouseEvent * e )
KMenuItemSeparator *si = dynamic_cast<KMenuItemSeparator*>( itemAt( vp ) );
if ( si )
{
- if ( si->hitsLink( vp - tqitemRect(si).topLeft() ) )
+ if ( si->hitsLink( vp - itemRect(si).topLeft() ) )
emit startURL( si->linkUrl() );
}
}
@@ -928,7 +928,7 @@ void ItemView::contentsMouseMoveEvent(TQMouseEvent *e)
bool link_cursor = false;
KMenuItemSeparator *si = dynamic_cast<KMenuItemSeparator*>( i );
if ( si )
- link_cursor = si->hitsLink( vp - tqitemRect(si).topLeft() );
+ link_cursor = si->hitsLink( vp - itemRect(si).topLeft() );
if (i && !i->isSelectable() && !link_cursor) {
unsetCursor();
@@ -965,7 +965,7 @@ void ItemView::resizeEvent ( TQResizeEvent * e )
{
KListView::resizeEvent( e );
// if ( m_lastOne )
-// int diff = tqitemRect( m_lastOne ).bottom() - viewport()->height();
+// int diff = itemRect( m_lastOne ).bottom() - viewport()->height();
}
void ItemView::viewportPaintEvent ( TQPaintEvent * pe )
@@ -975,7 +975,7 @@ void ItemView::viewportPaintEvent ( TQPaintEvent * pe )
if ( m_lastOne && m_old_contentY != contentsY() ) {
m_old_contentY = contentsY();
- m_lastOne->tqrepaint();
+ m_lastOne->repaint();
}
}
@@ -1020,17 +1020,17 @@ TQDragObject * ItemView::dragObject()
p.drawPixmap(pix.height()-add.height(), pix.width()-add.width(), add);
p.end();
- TQBitmap tqmask;
+ TQBitmap mask;
- if (pix.tqmask())
- tqmask = *pix.tqmask();
+ if (pix.mask())
+ mask = *pix.mask();
else {
- tqmask.resize(pix.size());
- tqmask.fill(Qt::color1);
+ mask.resize(pix.size());
+ mask.fill(Qt::color1);
}
- bitBlt( &tqmask, pix.width()-add.width(), pix.height()-add.height(), add.tqmask(), 0, 0, add.width(), add.height(), OrROP );
- pix.setMask( tqmask );
+ bitBlt( &mask, pix.width()-add.width(), pix.height()-add.height(), add.mask(), 0, 0, add.width(), add.height(), OrROP );
+ pix.setMask( mask );
o->setPixmap(pix);
if(kitem->service()) {
@@ -1052,7 +1052,7 @@ TQDragObject * ItemView::dragObject()
else if(!kitem->path().isEmpty() && !kitem->path().startsWith("kicker:/") && !kitem->path().startsWith("kaddressbook:/")) {
TQString uri = kitem->path();
- if (uri.startsWith(locateLocal("data", TQString::tqfromLatin1("RecentDocuments/")))) {
+ if (uri.startsWith(locateLocal("data", TQString::fromLatin1("RecentDocuments/")))) {
KDesktopFile df(uri,true);
uri=df.readURL();
}
@@ -1103,7 +1103,7 @@ const char * KMenuItemDrag::format(int i) const
return 0;
}
-TQByteArray KMenuItemDrag::tqencodedData(const char* mimeType) const
+TQByteArray KMenuItemDrag::encodedData(const char* mimeType) const
{
if (TQString("application/kmenuitem") == mimeType)
return a;
@@ -1138,7 +1138,7 @@ bool ItemView::acceptDrag (TQDropEvent* event) const
bool KMenuItemDrag::decode(const TQMimeSource* e, KMenuItemInfo& item)
{
- TQByteArray a = e->tqencodedData("application/kmenuitem");
+ TQByteArray a = e->encodedData("application/kmenuitem");
if (a.isEmpty()) {
TQStringList l;
@@ -1211,7 +1211,7 @@ bool FavoritesItemView::acceptDrag (TQDropEvent* event) const
TQString uri = item.m_path;
- if (uri.startsWith(locateLocal("data", TQString::tqfromLatin1("RecentDocuments/")))) {
+ if (uri.startsWith(locateLocal("data", TQString::fromLatin1("RecentDocuments/")))) {
KDesktopFile df(uri,true);
uri=df.readURL();
}
@@ -1219,7 +1219,7 @@ bool FavoritesItemView::acceptDrag (TQDropEvent* event) const
for (it = favs.begin(); it != favs.end(); ++it) {
if ((*it)[0]=='/') {
KDesktopFile df((*it),true);
- if (df.readURL().tqreplace("file://",TQString::null)==uri)
+ if (df.readURL().replace("file://",TQString::null)==uri)
break;
}
}
@@ -1233,7 +1233,7 @@ bool FavoritesItemView::acceptDrag (TQDropEvent* event) const
TQStringList favs = KickerSettings::favorites();
if (text.endsWith(".desktop")) {
- KService::Ptr p = KService::serviceByDesktopPath(text.tqreplace("file://",TQString::null));
+ KService::Ptr p = KService::serviceByDesktopPath(text.replace("file://",TQString::null));
return (p && favs.find(p->storageId())==favs.end());
}
else {
@@ -1241,7 +1241,7 @@ bool FavoritesItemView::acceptDrag (TQDropEvent* event) const
for (it = favs.begin(); it != favs.end(); ++it) {
if ((*it)[0]=='/') {
KDesktopFile df((*it),true);
- if (df.readURL().tqreplace("file://",TQString::null)==text)
+ if (df.readURL().replace("file://",TQString::null)==text)
break;
}
}
diff --git a/kicker/kicker/ui/itemview.h b/kicker/kicker/ui/itemview.h
index 2a6b7e68b..c8b95ee42 100644
--- a/kicker/kicker/ui/itemview.h
+++ b/kicker/kicker/ui/itemview.h
@@ -248,7 +248,7 @@ class KMenuItemDrag : public TQDragObject
~KMenuItemDrag();
virtual const char * format(int i = 0) const;
- virtual TQByteArray tqencodedData(const char *) const;
+ virtual TQByteArray encodedData(const char *) const;
static bool canDecode(const TQMimeSource * e);
static bool decode(const TQMimeSource* e, KMenuItemInfo& item);
diff --git a/kicker/kicker/ui/k_mnu.cpp b/kicker/kicker/ui/k_mnu.cpp
index 2b0afad5f..0506201f5 100644
--- a/kicker/kicker/ui/k_mnu.cpp
+++ b/kicker/kicker/ui/k_mnu.cpp
@@ -94,7 +94,7 @@ PanelKMenu::PanelKMenu()
"slotServiceStartedByStorageId(TQString,TQString)",
false);
displayRepairTimer = new TQTimer( this );
- connect( displayRepairTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(repairDisplay()) );
+ connect( displayRepairTimer, SIGNAL(timeout()), this, SLOT(repairDisplay()) );
}
PanelKMenu::~PanelKMenu()
@@ -125,7 +125,7 @@ void PanelKMenu::hideMenu()
while (isShown() == true)
kapp->eventLoop()->processEvents(1000);
TQTimer *windowtimer = new TQTimer( this );
- connect( windowtimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(windowClearTimeout()) );
+ connect( windowtimer, SIGNAL(timeout()), this, SLOT(windowClearTimeout()) );
windowTimerTimedOut = false;
windowtimer->start( 0, TRUE ); // Wait for all window system events to be processed
while (windowTimerTimedOut == false)
@@ -138,7 +138,7 @@ void PanelKMenu::hideMenu()
// thereby removing a bad shutdown screen artifact while still providing
// a somewhat snappy user interface.
TQTimer *delaytimer = new TQTimer( this );
- connect( delaytimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(windowClearTimeout()) );
+ connect( delaytimer, SIGNAL(timeout()), this, SLOT(windowClearTimeout()) );
windowTimerTimedOut = false;
delaytimer->start( 100, TRUE ); // Wait for 100 milliseconds
while (windowTimerTimedOut == false)
@@ -207,7 +207,7 @@ void PanelKMenu::paletteChanged()
if (!loadSidePixmap())
{
sidePixmap = sideTilePixmap = TQPixmap();
- setMinimumSize( tqsizeHint() );
+ setMinimumSize( sizeHint() );
}
}
@@ -415,10 +415,10 @@ void PanelKMenu::repairDisplay(void) {
displayRepairTimer->stop();
// Now do a nasty hack to prevent search bar merging into the side image
- // This forces a tqlayout/tqrepaint of the qpopupmenu
- tqrepaint(); // This ensures that the side bar image was applied
+ // This forces a layout/repaint of the qpopupmenu
+ repaint(); // This ensures that the side bar image was applied
styleChange(style()); // This forces a call to the private function updateSize(TRUE) inside the qpopupmenu.
- update(); // This tqrepaints the entire popup menu to apply the widget size/tqalignment changes made above
+ update(); // This repaints the entire popup menu to apply the widget size/alignment changes made above
}
}
@@ -579,32 +579,32 @@ void PanelKMenu::showMenu()
TQRect PanelKMenu::sideImageRect()
{
- return TQStyle::tqvisualRect( TQRect( frameWidth(), frameWidth(), sidePixmap.width(),
+ return TQStyle::visualRect( TQRect( frameWidth(), frameWidth(), sidePixmap.width(),
height() - 2*frameWidth() ), this );
}
void PanelKMenu::resizeEvent(TQResizeEvent * e)
{
// kdDebug(1210) << "PanelKMenu::resizeEvent():" << endl;
-// kdDebug(1210) << tqgeometry().width() << ", " << tqgeometry().height() << endl;
+// kdDebug(1210) << geometry().width() << ", " << geometry().height() << endl;
PanelServiceMenu::resizeEvent(e);
- setFrameRect( TQStyle::tqvisualRect( TQRect( sidePixmap.width(), 0,
+ setFrameRect( TQStyle::visualRect( TQRect( sidePixmap.width(), 0,
width() - sidePixmap.width(), height() ), this ) );
}
//Workaround Qt3.3.x sizing bug, by ensuring we're always wide enough.
void PanelKMenu::resize(int width, int height)
{
- width = kMax(width, tqmaximumSize().width());
+ width = kMax(width, maximumSize().width());
PanelServiceMenu::resize(width, height);
}
-TQSize PanelKMenu::tqsizeHint() const
+TQSize PanelKMenu::sizeHint() const
{
- TQSize s = PanelServiceMenu::tqsizeHint();
-// kdDebug(1210) << "PanelKMenu::tqsizeHint()" << endl;
+ TQSize s = PanelServiceMenu::sizeHint();
+// kdDebug(1210) << "PanelKMenu::sizeHint()" << endl;
// kdDebug(1210) << s.width() << ", " << s.height() << endl;
return s;
}
@@ -621,7 +621,7 @@ void PanelKMenu::paintEvent(TQPaintEvent * e)
style().drawPrimitive( TQStyle::PE_PanelPopup, &p,
TQRect( 0, 0, width(), height() ),
- tqcolorGroup(), TQStyle::Style_Default,
+ colorGroup(), TQStyle::Style_Default,
TQStyleOption( frameWidth(), 0 ) );
TQRect r = sideImageRect();
@@ -648,7 +648,7 @@ TQMouseEvent PanelKMenu::translateMouseEvent( TQMouseEvent* e )
{
TQRect side = sideImageRect();
- if ( !side.tqcontains( e->pos() ) )
+ if ( !side.contains( e->pos() ) )
return *e;
TQPoint newpos( e->pos() );
@@ -700,7 +700,7 @@ void PanelKMenu::keyPressEvent(TQKeyEvent* e)
// user presses '/'. This is the same shortcut as
// konqueror is using, and afaik it's hardcoded both
// here and there. This sucks badly for many non-us
- // keyboard tqlayouts, but for the sake of consistency
+ // keyboard layouts, but for the sake of consistency
// we follow konqueror.
if (!searchEdit) return KPanelMenu::keyPressEvent(e);
diff --git a/kicker/kicker/ui/k_mnu.h b/kicker/kicker/ui/k_mnu.h
index d91ddf032..16655bdd6 100644
--- a/kicker/kicker/ui/k_mnu.h
+++ b/kicker/kicker/ui/k_mnu.h
@@ -59,7 +59,7 @@ public:
int insertClientMenu(KickerClientMenu *p);
void removeClientMenu(int id);
- virtual TQSize tqsizeHint() const;
+ virtual TQSize sizeHint() const;
virtual void setMinimumSize(const TQSize &);
virtual void setMaximumSize(const TQSize &);
virtual void setMinimumSize(int, int);
diff --git a/kicker/kicker/ui/k_mnu_stub.cpp b/kicker/kicker/ui/k_mnu_stub.cpp
index 16e755d48..b02d2bcbf 100644
--- a/kicker/kicker/ui/k_mnu_stub.cpp
+++ b/kicker/kicker/ui/k_mnu_stub.cpp
@@ -97,11 +97,11 @@ void KMenuStub::resize(int w, int h)
return m_w.panelkmenu->resize(w, h);
}
-TQSize KMenuStub::tqsizeHint() const
+TQSize KMenuStub::sizeHint() const
{
if(m_type == t_KMenu)
- return m_w.kmenu->tqsizeHint();
- return m_w.panelkmenu->tqsizeHint();
+ return m_w.kmenu->sizeHint();
+ return m_w.panelkmenu->sizeHint();
}
bool KMenuStub::highlightMenuItem( const TQString &menuId )
diff --git a/kicker/kicker/ui/k_mnu_stub.h b/kicker/kicker/ui/k_mnu_stub.h
index 17fe92b7c..362d132b2 100644
--- a/kicker/kicker/ui/k_mnu_stub.h
+++ b/kicker/kicker/ui/k_mnu_stub.h
@@ -53,7 +53,7 @@ public:
void popup(const TQPoint &pos, int indexAtPoint = -1);
void selectFirstItem();
void resize(int, int);
- TQSize tqsizeHint() const;
+ TQSize sizeHint() const;
bool highlightMenuItem( const TQString &menuId );
void clearRecentMenuItems();
void initialize();
diff --git a/kicker/kicker/ui/k_new_mnu.cpp b/kicker/kicker/ui/k_new_mnu.cpp
index 2fc18f079..a2a8cb2fc 100644
--- a/kicker/kicker/ui/k_new_mnu.cpp
+++ b/kicker/kicker/ui/k_new_mnu.cpp
@@ -141,12 +141,12 @@ static TQString workaroundStringFreeze(const TQString& str)
{
TQString s = str;
- s.tqreplace("<u>","&");
+ s.replace("<u>","&");
TQRegExp re("<[^>]+>");
re.setMinimal(true);
re.setCaseSensitive(false);
- s.tqreplace(re, "");
+ s.replace(re, "");
s = s.simplifyWhiteSpace();
return s;
@@ -194,7 +194,7 @@ KMenu::KMenu()
m_userInfo->setBackgroundMode( PaletteBase );
TQColor userInfoColor = TQApplication::palette().color( TQPalette::Normal, TQColorGroup::Mid );
- if ( tqGray( userInfoColor.rgb() ) > 120 )
+ if ( qGray( userInfoColor.rgb() ) > 120 )
userInfoColor = userInfoColor.dark( 200 );
else
userInfoColor = userInfoColor.light( 200 );
@@ -302,7 +302,7 @@ KMenu::KMenu()
m_searchInternet->setPixmap(0,icon);
setTabOrder(m_kcommand, m_searchResultsWidget);
- m_kerryInstalled = !KStandardDirs::findExe(TQString::tqfromLatin1("kerry")).isEmpty();
+ m_kerryInstalled = !KStandardDirs::findExe(TQString::fromLatin1("kerry")).isEmpty();
m_isShowing = false;
if (!m_kerryInstalled) {
@@ -421,7 +421,7 @@ void KMenu::setupUi()
{
m_stacker = new TQWidgetStack( this, "m_stacker" );
m_stacker->setGeometry( TQRect( 90, 260, 320, 220 ) );
- m_stacker->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 1, 1, m_stacker->sizePolicy().hasHeightForWidth() ) );
+ m_stacker->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 1, 1, m_stacker->sizePolicy().hasHeightForWidth() ) );
m_stacker->setPaletteBackgroundColor( TQColor( 255, 255, 255 ) );
// m_stacker->setFocusPolicy( TQWidget::StrongFocus );
m_stacker->setLineWidth( 0 );
@@ -495,7 +495,7 @@ bool KMenu::eventFilter ( TQObject * receiver, TQEvent* e)
if(raiseWidget)
break;
if(receiver->isWidgetType())
- receiver = static_cast<TQWidget*>(receiver)->tqparentWidget(true);
+ receiver = static_cast<TQWidget*>(receiver)->parentWidget(true);
else
break;
}
@@ -517,12 +517,12 @@ bool KMenu::eventFilter ( TQObject * receiver, TQEvent* e)
return false;
}
- if (m_sloppyRegion.tqcontains(p)) {
+ if (m_sloppyRegion.contains(p)) {
if (e->type() == TQEvent::MouseButtonPress /*&& m_sloppyTimer.isActive()*/)
m_sloppySourceClicked = true;
if (!m_sloppyTimer.isActive() || m_sloppySource != raiseRect) {
- int timeout= style().tqstyleHint(TQStyle::SH_PopupMenu_SubMenuPopupDelay);
+ int timeout= style().styleHint(TQStyle::SH_PopupMenu_SubMenuPopupDelay);
if (m_sloppySourceClicked)
timeout = 3000;
m_sloppyTimer.start(timeout);
@@ -682,9 +682,9 @@ bool KMenu::eventFilter ( TQObject * receiver, TQEvent* e)
void KMenu::slotSloppyTimeout()
{
- if (m_sloppyRegion.tqcontains(TQCursor::pos()) && !m_sloppySource.isNull())
+ if (m_sloppyRegion.contains(TQCursor::pos()) && !m_sloppySource.isNull())
{
- if ( m_sloppySource.tqcontains(TQCursor::pos()))
+ if ( m_sloppySource.contains(TQCursor::pos()))
{
m_stacker->raiseWidget(m_sloppyWidget);
@@ -882,7 +882,7 @@ void KMenu::slotGoExitSubMenu(const TQString& url)
m_exitView->rightView()->insertItem( "switchuser", i18n( "Start New Session" ),
i18n( "Start a parallel session" ), "kicker:/switchuser", nId++, index++ );
- m_exitView->rightView()->insertItem( "lock", i18n( "Lock Current && Start New Session").tqreplace("&&","&"),
+ m_exitView->rightView()->insertItem( "lock", i18n( "Lock Current && Start New Session").replace("&&","&"),
i18n( "Lock screen and start a parallel session" ), "kicker:/switchuserafterlock", nId++, index++ );
SessList sess;
@@ -1259,7 +1259,7 @@ void KMenu::initialize()
if ((*it)[0]=='/') {
KDesktopFile df((*it),true);
TQString url = df.readURL();
- if (!KURL(url).isLocalFile() || TQFile::exists(url.tqreplace("file://",TQString::null)))
+ if (!KURL(url).isLocalFile() || TQFile::exists(url.replace("file://",TQString::null)))
m_favoriteView->insertItem(df.readIcon(),df.readName(),df.readGenericName(), url, nId++, index++);
}
else {
@@ -1314,7 +1314,7 @@ void KMenu::insertStaticExitItems()
m_exitView->leftView()->insertItem( "exit", i18n( "Shutdown Computer" ),
i18n( "Turn off computer" ), "kicker:/shutdown", nId++, index++ );
- m_exitView->leftView()->insertItem( "reload", i18n( "&Restart Computer" ).tqreplace("&",""),
+ m_exitView->leftView()->insertItem( "reload", i18n( "&Restart Computer" ).replace("&",""),
i18n( "Restart and boot the default system" ),
"kicker:/restart", nId++, index++ );
@@ -1556,7 +1556,7 @@ bool KMenu::runCommand()
case KURIFilterData::HELP:
{
// No need for kfmclient, KRun does it all (David)
- (void) new KRun( m_filterData->uri(), tqparentWidget());
+ (void) new KRun( m_filterData->uri(), parentWidget());
return false;
}
case KURIFilterData::EXECUTABLE:
@@ -1699,14 +1699,14 @@ void KMenu::setOrientation(MenuOrientation orientation)
TQWidget *footer = m_footer->mainWidget();
TQPixmap pix( 64, footer->height() );
TQPainter p( &pix );
- p.fillRect( 0, 0, 64, footer->height(), m_branding->tqcolorGroup().brush( TQColorGroup::Base ) );
+ p.fillRect( 0, 0, 64, footer->height(), m_branding->colorGroup().brush( TQColorGroup::Base ) );
p.fillRect( 0, m_orientation == BottomUp ? footer->height() - 2 : 0,
64, 3, KNewButton::self()->borderColor() );
p.end();
footer->setPaletteBackgroundPixmap( pix );
}
- resizeEvent(new TQResizeEvent(tqsizeHint(), tqsizeHint()));
+ resizeEvent(new TQResizeEvent(sizeHint(), sizeHint()));
}
void KMenu::showMenu()
@@ -1762,10 +1762,10 @@ void KMenu::paintEvent(TQPaintEvent * e)
const BackgroundMode bgmode = backgroundMode();
const TQColorGroup::ColorRole crole = TQPalette::backgroundRoleFromMode( bgmode );
- p.setBrush( tqcolorGroup().brush( crole ) );
+ p.setBrush( colorGroup().brush( crole ) );
p.drawRect( 0, 0, width(), height() );
- int ypos = m_search->mainWidget()->tqgeometry().bottom();
+ int ypos = m_search->mainWidget()->geometry().bottom();
p.drawPixmap( 0, ypos, main_border_tl );
p.drawPixmap( width() - main_border_tr.width(), ypos, main_border_tr );
@@ -1923,7 +1923,7 @@ void KMenu::createNewProgramList()
m_seenPrograms = KickerSettings::firstSeenApps();
m_newInstalledPrograms.clear();
- m_tqcurrentDate = TQDate::tqcurrentDate().toString(Qt::ISODate);
+ m_currentDate = TQDate::currentDate().toString(Qt::ISODate);
bool initialize = (m_seenPrograms.count() == 0);
@@ -1964,7 +1964,7 @@ void KMenu::createNewProgramList(TQString relPath)
} else if(e->isType(KST_KService)) {
KService::Ptr s(static_cast<KService *>(e));
if(s->type() == "Application" && !s->noDisplay() ) {
- TQString shortStorageId = s->storageId().tqreplace(".desktop",TQString::null);
+ TQString shortStorageId = s->storageId().replace(".desktop",TQString::null);
TQStringList::Iterator it_find = m_seenPrograms.begin();
TQStringList::Iterator it_end = m_seenPrograms.end();
bool found = false;
@@ -1978,7 +1978,7 @@ void KMenu::createNewProgramList(TQString relPath)
if (!found) {
m_seenProgramsChanged=true;
m_seenPrograms+=shortStorageId;
- m_seenPrograms+=m_tqcurrentDate;
+ m_seenPrograms+=m_currentDate;
if (m_newInstalledPrograms.find(s->storageId())==m_newInstalledPrograms.end())
m_newInstalledPrograms+=s->storageId();
}
@@ -1986,7 +1986,7 @@ void KMenu::createNewProgramList(TQString relPath)
++it_find;
if (*(it_find)!="-") {
TQDate date = TQDate::fromString(*(it_find),Qt::ISODate);
- if (date.daysTo(TQDate::tqcurrentDate())<3) {
+ if (date.daysTo(TQDate::currentDate())<3) {
if (m_newInstalledPrograms.find(s->storageId())==m_newInstalledPrograms.end())
m_newInstalledPrograms+=s->storageId();
}
@@ -2540,7 +2540,7 @@ TQString KMenu::iconForHitMenuItem(HitMenuItem *hit_item)
return favicon;
}
- if (mimetype_iconstore.tqcontains (hit_item->mimetype))
+ if (mimetype_iconstore.contains (hit_item->mimetype))
return (mimetype_iconstore [hit_item->mimetype]);
else {
KMimeType::Ptr mimetype_ptr = KMimeType::mimeType (hit_item->mimetype);
@@ -2715,7 +2715,7 @@ void KMenu::slotStartURL(const TQString& u)
}
kapp->propagateSessionManager();
- (void) new KRun( u, tqparentWidget());
+ (void) new KRun( u, parentWidget());
}
}
@@ -2744,7 +2744,7 @@ void KMenu::slotContextMenuRequested( TQListViewItem * item, const TQPoint & pos
m_popupPath.path = kitem->path();
m_popupPath.icon = kitem->icon();
- if (m_popupPath.path.startsWith(locateLocal("data", TQString::tqfromLatin1("RecentDocuments/")))) {
+ if (m_popupPath.path.startsWith(locateLocal("data", TQString::fromLatin1("RecentDocuments/")))) {
KDesktopFile df(m_popupPath.path,true);
m_popupPath.path=df.readURL();
}
@@ -2779,7 +2779,7 @@ void KMenu::slotContextMenuRequested( TQListViewItem * item, const TQPoint & pos
if ((*it)[0]=='/')
{
KDesktopFile df((*it),true);
- if (df.readURL().tqreplace("file://",TQString::null)==m_popupPath.path)
+ if (df.readURL().replace("file://",TQString::null)==m_popupPath.path)
break;
}
}
@@ -2936,7 +2936,7 @@ void KMenu::slotContextMenu(int selected)
case EditMenu:
accept();
proc = new KProcess(this);
- *proc << KStandardDirs::findExe(TQString::tqfromLatin1("kmenuedit"));
+ *proc << KStandardDirs::findExe(TQString::fromLatin1("kmenuedit"));
*proc << "/"+m_popupPath.menuPath.section('/',-200,-2) << m_popupPath.menuPath.section('/', -1);
proc->start();
break;
@@ -2982,7 +2982,7 @@ void KMenu::slotContextMenu(int selected)
for (it = favs.begin(); it != favs.end(); ++it) {
if ((*it)[0]=='/') {
KDesktopFile df((*it),true);
- if (df.readURL().tqreplace("file://",TQString::null)==m_popupPath.path)
+ if (df.readURL().replace("file://",TQString::null)==m_popupPath.path)
break;
}
}
@@ -3024,7 +3024,7 @@ void KMenu::slotContextMenu(int selected)
for (TQStringList::Iterator it = favs.begin(); it != favs.end(); ++it) {
if ((*it)[0]=='/') {
KDesktopFile df((*it),true);
- if (df.readURL().tqreplace("file://",TQString::null)==m_popupPath.path) {
+ if (df.readURL().replace("file://",TQString::null)==m_popupPath.path) {
TQFile::remove((*it));
favs.erase(it);
break;
@@ -3074,24 +3074,24 @@ void KMenu::resizeEvent ( TQResizeEvent * e )
// put the search widget at the top of the menu and give it its desired
// height
m_search->mainWidget()->setGeometry( 0, ypos, width(),
- m_search->tqminimumSize().height() );
- left_height -= m_search->tqminimumSize().height();
- ypos += m_search->tqminimumSize().height();
+ m_search->minimumSize().height() );
+ left_height -= m_search->minimumSize().height();
+ ypos += m_search->minimumSize().height();
// place the footer widget at the bottom of the menu and give it its desired
// height
- m_footer->mainWidget()->setGeometry( 0, height() - m_footer->tqminimumSize().height(),
- width(), m_footer->tqminimumSize().height() );
- left_height -= m_footer->tqminimumSize().height();
+ m_footer->mainWidget()->setGeometry( 0, height() - m_footer->minimumSize().height(),
+ width(), m_footer->minimumSize().height() );
+ left_height -= m_footer->minimumSize().height();
// place the button box above the footer widget, horizontal placement
// has the width of the edge graphics subtracted
m_tabBar->setGeometry(button_box_left.width(),
- height() - m_footer->tqminimumSize().height() -
- m_tabBar->tqsizeHint().height(),
+ height() - m_footer->minimumSize().height() -
+ m_tabBar->sizeHint().height(),
width() - button_box_left.width(),
- m_tabBar->tqsizeHint().height() );
- left_height -= m_tabBar->tqsizeHint().height();
+ m_tabBar->sizeHint().height() );
+ left_height -= m_tabBar->sizeHint().height();
// place the main (stacker) widget below the search widget,
// in the remaining vertical space
@@ -3105,28 +3105,28 @@ void KMenu::resizeEvent ( TQResizeEvent * e )
// place the 'footer' widget at the top of the menu and give it
// its desired height
m_footer->mainWidget()->setGeometry( 0,
- ypos /*height() - m_footer->tqminimumSize().height()*/,
+ ypos /*height() - m_footer->minimumSize().height()*/,
width(),
- m_footer->tqminimumSize().height() );
- ypos += m_footer->tqminimumSize().height();
- left_height -= m_footer->tqminimumSize().height();
+ m_footer->minimumSize().height() );
+ ypos += m_footer->minimumSize().height();
+ left_height -= m_footer->minimumSize().height();
// place the button box next at the top of the menu.
// has the width of the edge graphics subtracted
m_tabBar->setGeometry(button_box_left.width(), ypos, width() - button_box_left.width(),
- m_tabBar->tqsizeHint().height());
+ m_tabBar->sizeHint().height());
- ypos += m_tabBar->tqsizeHint().height();
- left_height -= m_tabBar->tqsizeHint().height();
+ ypos += m_tabBar->sizeHint().height();
+ left_height -= m_tabBar->sizeHint().height();
// put the search widget above the footer widget
// height
m_search->mainWidget()->setGeometry( 0,
- height() - m_search->tqminimumSize().height(),
+ height() - m_search->minimumSize().height(),
width(),
- m_search->tqminimumSize().height()
+ m_search->minimumSize().height()
);
- left_height -= m_search->tqminimumSize().height();
+ left_height -= m_search->minimumSize().height();
// place the main (stacker) widget below the button box,
// in the remaining vertical space
@@ -3167,14 +3167,14 @@ void KMenu::mouseMoveEvent ( TQMouseEvent * e )
if ( hasMouseTracking() && m_isresizing ) {
m_stacker->setMinimumSize( TQSize(0, 0) );
m_stacker->setMaximumSize( TQSize(32000, 32000) );
- int newWidth = QMAX( e->x() - x(), tqminimumSizeHint().width() );
+ int newWidth = QMAX( e->x() - x(), minimumSizeHint().width() );
if ( m_orientation == BottomUp ) {
- int newHeight = QMAX( height() - e->y(), tqminimumSizeHint().height() + 10 );
+ int newHeight = QMAX( height() - e->y(), minimumSizeHint().height() + 10 );
int newY = y() + height() - newHeight;
setGeometry( x(), newY, newWidth, newHeight);
}
else {
- setGeometry( x(), y(), newWidth, QMAX( e->y(), tqminimumSizeHint().height() + 10 ));
+ setGeometry( x(), y(), newWidth, QMAX( e->y(), minimumSizeHint().height() + 10 ));
}
}
}
@@ -3277,10 +3277,10 @@ void KMenu::searchActionClicked(TQListViewItem* item)
if( !KURIFilter::self()->filterURI(data, list) ) {
KDesktopFile file("searchproviders/google.desktop", true, "services");
- data.setData(file.readEntry("Query").tqreplace("\\{@}", m_kcommand->currentText()));
+ data.setData(file.readEntry("Query").replace("\\{@}", m_kcommand->currentText()));
}
- (void) new KRun( data.uri(), tqparentWidget());
+ (void) new KRun( data.uri(), parentWidget());
}
}
@@ -3320,7 +3320,7 @@ void KMenu::updateRecentlyUsedApps(KService::Ptr &service)
TQString strItem(service->desktopEntryPath());
// don't add an item from root kmenu level
- if (!strItem.tqcontains('/'))
+ if (!strItem.contains('/'))
{
return;
}
@@ -3331,36 +3331,36 @@ void KMenu::updateRecentlyUsedApps(KService::Ptr &service)
RecentlyLaunchedApps::the().m_bNeedToUpdate = true;
}
-TQSize KMenu::tqsizeHint() const
+TQSize KMenu::sizeHint() const
{
#warning FIXME
- // this should be only for the inner area so tqlayout changes do not break it
+ // this should be only for the inner area so layout changes do not break it
const int width = kMin(KickerSettings::kMenuWidth(), TQApplication::desktop()->screen()->width()-50);
const int height = kMin(KickerSettings::kMenuHeight(), TQApplication::desktop()->screen()->height()-50);
TQSize wanted(width, height);
- kdDebug() << "show " << tqminimumSizeHint() << " " << m_stacker->tqminimumSizeHint() << " "
- << m_searchFrame->tqminimumSizeHint() << " " << wanted << endl;
+ kdDebug() << "show " << minimumSizeHint() << " " << m_stacker->minimumSizeHint() << " "
+ << m_searchFrame->minimumSizeHint() << " " << wanted << endl;
bool isDefault = wanted.isNull();
- wanted = wanted.expandedTo(tqminimumSizeHint());
+ wanted = wanted.expandedTo(minimumSizeHint());
if ( isDefault )
- wanted.setHeight( wanted.height() + ( m_favoriteView->goodHeight() - m_stacker->tqminimumSizeHint().height() ) );
+ wanted.setHeight( wanted.height() + ( m_favoriteView->goodHeight() - m_stacker->minimumSizeHint().height() ) );
return wanted;
}
-TQSize KMenu::tqminimumSizeHint() const
+TQSize KMenu::minimumSizeHint() const
{
TQSize minsize;
- minsize.setWidth( minsize.width() + m_tabBar->tqsizeHint().width() );
+ minsize.setWidth( minsize.width() + m_tabBar->sizeHint().width() );
minsize.setWidth( QMAX( minsize.width(),
- m_search->tqminimumSize().width() ) );
+ m_search->minimumSize().width() ) );
minsize.setWidth( QMAX( minsize.width(),
- m_search->tqminimumSize().width() ) );
+ m_search->minimumSize().width() ) );
minsize.setHeight( minsize.height() +
- m_search->tqminimumSize().height() +
- m_footer->tqminimumSize().height() +
+ m_search->minimumSize().height() +
+ m_footer->minimumSize().height() +
180 ); // 180 is a very rough guess for 32 icon size
return minsize;
}
@@ -3387,7 +3387,7 @@ void KMenu::slotFavoritesMoved( TQListViewItem* item, TQListViewItem* /*afterFir
if ((*it)[0]=='/')
{
KDesktopFile df((*it),true);
- if (df.readURL().tqreplace("file://",TQString::null)==kitem->path())
+ if (df.readURL().replace("file://",TQString::null)==kitem->path())
{
addFav = *it;
favs.erase(it);
@@ -3412,7 +3412,7 @@ void KMenu::slotFavoritesMoved( TQListViewItem* item, TQListViewItem* /*afterFir
if ((*it)[0]=='/' && !kafterNow->service())
{
KDesktopFile df((*it),true);
- if (df.readURL().tqreplace("file://",TQString::null)==kafterNow->path())
+ if (df.readURL().replace("file://",TQString::null)==kafterNow->path())
{
kdDebug() << "insert after " << kafterNow->path() << endl;
favs.insert(++it,addFav);
@@ -3558,7 +3558,7 @@ void KMenu::slotFavDropped(TQDropEvent * ev, TQListViewItem *after )
else
{
TQString uri = item.m_path;
- if (uri.startsWith(locateLocal("data", TQString::tqfromLatin1("RecentDocuments/")))) {
+ if (uri.startsWith(locateLocal("data", TQString::fromLatin1("RecentDocuments/")))) {
KDesktopFile df(uri,true);
uri=df.readURL();
}
@@ -3569,7 +3569,7 @@ void KMenu::slotFavDropped(TQDropEvent * ev, TQListViewItem *after )
if ((*it)[0]=='/')
{
KDesktopFile df((*it),true);
- if (df.readURL().tqreplace("file://",TQString::null)==uri)
+ if (df.readURL().replace("file://",TQString::null)==uri)
break;
}
}
@@ -3597,7 +3597,7 @@ void KMenu::slotFavDropped(TQDropEvent * ev, TQListViewItem *after )
if (text.endsWith(".desktop"))
{
- KService::Ptr p = KService::serviceByDesktopPath(text.tqreplace("file://",TQString::null));
+ KService::Ptr p = KService::serviceByDesktopPath(text.replace("file://",TQString::null));
if (p && favs.find(p->storageId())==favs.end()) {
newItem = m_favoriteView->insertMenuItem(p, serviceMenuEndId()+favs.count()+1);
favs+=p->storageId();
@@ -3611,7 +3611,7 @@ void KMenu::slotFavDropped(TQDropEvent * ev, TQListViewItem *after )
if ((*it)[0]=='/')
{
KDesktopFile df((*it),true);
- if (df.readURL().tqreplace("file://",TQString::null)==text)
+ if (df.readURL().replace("file://",TQString::null)==text)
break;
}
}
diff --git a/kicker/kicker/ui/k_new_mnu.h b/kicker/kicker/ui/k_new_mnu.h
index 73549cfa0..ef45ef815 100644
--- a/kicker/kicker/ui/k_new_mnu.h
+++ b/kicker/kicker/ui/k_new_mnu.h
@@ -104,8 +104,8 @@ public:
enum MaskEffect { Plain, Dissolve };
- virtual TQSize tqsizeHint() const;
- virtual TQSize tqminimumSizeHint() const;
+ virtual TQSize sizeHint() const;
+ virtual TQSize minimumSizeHint() const;
void searchOver();
void initCategoryTitlesUpdate();
@@ -319,7 +319,7 @@ private:
TQStringList m_programsInMenu;
TQStringList m_newInstalledPrograms, m_seenPrograms;
bool m_seenProgramsChanged;
- TQString m_tqcurrentDate;
+ TQString m_currentDate;
MenuOrientation m_orientation;
bool m_toolTipsEnabled;
diff --git a/kicker/kicker/ui/kickoff_bar.cpp b/kicker/kicker/ui/kickoff_bar.cpp
index de6f3661e..2f0de9aea 100644
--- a/kicker/kicker/ui/kickoff_bar.cpp
+++ b/kicker/kicker/ui/kickoff_bar.cpp
@@ -56,10 +56,10 @@ void KickoffTabBar::paint(TQPainter* p, TQTab* t, bool selected) const
// else if(t == d->pressed)
// flags |= TQStyle::Style_Sunken;
//selection flags
- if(t->rect().tqcontains(mapFromGlobal(TQCursor::pos())))
+ if(t->rect().contains(mapFromGlobal(TQCursor::pos())))
flags |= TQStyle::Style_MouseOver;
- style().tqdrawControl( TQStyle::CE_TabBarTab, p, this, t->rect(),
- tqcolorGroup(), flags, TQStyleOption(t) );
+ style().drawControl( TQStyle::CE_TabBarTab, p, this, t->rect(),
+ colorGroup(), flags, TQStyleOption(t) );
paintLabel( p, t->rect(), t, t->identifier() == keyboardFocusTab() );
}
@@ -70,7 +70,7 @@ void KickoffTabBar::paintLabel(TQPainter* p, const TQRect& br, TQTab* t, bool ha
TQRect r = br;
bool selected = m_tabsActivated && (currentTab() == t->identifier());
- int vframe = style().tqpixelMetric( TQStyle::PM_TabBarTabVSpace, this );
+ int vframe = style().pixelMetric( TQStyle::PM_TabBarTabVSpace, this );
p->setFont( font() );
TQFontMetrics fm = p->fontMetrics();
@@ -114,30 +114,30 @@ void KickoffTabBar::paintLabel(TQPainter* p, const TQRect& br, TQTab* t, bool ha
flags |= TQStyle::Style_Selected;
// else if(t == d->pressed)
// flags |= TQStyle::Style_Sunken;
- if(t->rect().tqcontains(mapFromGlobal(TQCursor::pos())))
+ if(t->rect().contains(mapFromGlobal(TQCursor::pos())))
flags |= TQStyle::Style_MouseOver;
- style().tqdrawControl( TQStyle::CE_TabBarLabel, p, this, rt,
- t->isEnabled() ? tqcolorGroup(): palette().disabled(),
+ style().drawControl( TQStyle::CE_TabBarLabel, p, this, rt,
+ t->isEnabled() ? colorGroup(): palette().disabled(),
flags, TQStyleOption(t) );
}
-TQSize KickoffTabBar::tqsizeHint() const
+TQSize KickoffTabBar::sizeHint() const
{
- TQSize s = TQTabBar::tqsizeHint();
+ TQSize s = TQTabBar::sizeHint();
return s;
}
-void KickoffTabBar::tqlayoutTabs()
+void KickoffTabBar::layoutTabs()
{
- TQTabBar::tqlayoutTabs();
+ TQTabBar::layoutTabs();
TQFontMetrics fm = fontMetrics();
int fh = ((KickerSettings::kickoffTabBarFormat() != KickerSettings::IconOnly) ? fm.height() : 0) + 4;
- int hframe = style().tqpixelMetric( TQStyle::PM_TabBarTabHSpace, this );
- int vframe = style().tqpixelMetric( TQStyle::PM_TabBarTabVSpace, this );
- int overlap = style().tqpixelMetric( TQStyle::PM_TabBarTabOverlap, this );
+ int hframe = style().pixelMetric( TQStyle::PM_TabBarTabHSpace, this );
+ int vframe = style().pixelMetric( TQStyle::PM_TabBarTabVSpace, this );
+ int overlap = style().pixelMetric( TQStyle::PM_TabBarTabOverlap, this );
TQSize s;
for (int t = 0; t < count(); ++t)
diff --git a/kicker/kicker/ui/kickoff_bar.h b/kicker/kicker/ui/kickoff_bar.h
index 67a7fcdda..2330ffe39 100644
--- a/kicker/kicker/ui/kickoff_bar.h
+++ b/kicker/kicker/ui/kickoff_bar.h
@@ -32,12 +32,12 @@ public:
KickoffTabBar(TQWidget* parent, const char* name);
void deactivateTabs(bool b);
- virtual TQSize tqsizeHint() const;
+ virtual TQSize sizeHint() const;
protected:
virtual void paint(TQPainter*, TQTab*, bool) const;
virtual void paintLabel(TQPainter* p, const TQRect& br, TQTab* t, bool has_focus) const;
- virtual void tqlayoutTabs();
+ virtual void layoutTabs();
virtual void dragEnterEvent(TQDragEnterEvent*);
virtual void dragMoveEvent(TQDragMoveEvent*);
virtual void mousePressEvent ( TQMouseEvent * );
diff --git a/kicker/kicker/ui/kmenuitembase.ui b/kicker/kicker/ui/kmenuitembase.ui
index 64f598076..0cbea1155 100644
--- a/kicker/kicker/ui/kmenuitembase.ui
+++ b/kicker/kicker/ui/kmenuitembase.ui
@@ -4,7 +4,7 @@
<property name="name">
<cstring>KMenuItemBase</cstring>
</property>
- <property name="tqgeometry">
+ <property name="geometry">
<rect>
<x>0</x>
<y>0</y>
@@ -20,13 +20,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>32767</width>
<height>80</height>
@@ -44,7 +44,7 @@
</property>
<widget class="QLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>tqlayout11</cstring>
+ <cstring>layout11</cstring>
</property>
<vbox>
<property name="name">
@@ -73,7 +73,7 @@
<property name="textFormat">
<enum>RichText</enum>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@@ -102,7 +102,7 @@
<property name="textFormat">
<enum>RichText</enum>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@@ -110,7 +110,7 @@
</widget>
<widget class="QLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<vbox>
<property name="name">
@@ -120,7 +120,7 @@
<property name="name">
<cstring>itemPixmap</cstring>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>64</width>
<height>64</height>
@@ -129,7 +129,7 @@
<property name="text">
<string></string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignTop|AlignHCenter</set>
</property>
</widget>
@@ -137,5 +137,5 @@
</widget>
</grid>
</widget>
-<tqlayoutdefaults spacing="6" margin="11"/>
+<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kicker/kicker/ui/nonKDEButtonSettings.ui b/kicker/kicker/ui/nonKDEButtonSettings.ui
index a6b5cb8ae..5c44aca85 100644
--- a/kicker/kicker/ui/nonKDEButtonSettings.ui
+++ b/kicker/kicker/ui/nonKDEButtonSettings.ui
@@ -4,7 +4,7 @@
<property name="name">
<cstring>NonKDEButtonSettings</cstring>
</property>
- <property name="tqgeometry">
+ <property name="geometry">
<rect>
<x>0</x>
<y>0</y>
@@ -121,7 +121,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -140,13 +140,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>58</width>
<height>58</height>
</size>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>58</width>
<height>58</height>
@@ -199,7 +199,7 @@
<property name="sizeType">
<enum>Minimum</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>8</height>
@@ -216,6 +216,6 @@
<tabstop>m_commandLine</tabstop>
<tabstop>m_inTerm</tabstop>
</tabstops>
-<tqlayoutdefaults spacing="6" margin="11"/>
-<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<layoutdefaults spacing="6" margin="11"/>
+<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/kicker/kicker/ui/popupmenutitle.h b/kicker/kicker/ui/popupmenutitle.h
index f861cbc7e..439fc195f 100644
--- a/kicker/kicker/ui/popupmenutitle.h
+++ b/kicker/kicker/ui/popupmenutitle.h
@@ -69,11 +69,11 @@ public:
m_font.setBold(true);
}
- TQSize tqsizeHint()
+ TQSize sizeHint()
{
TQSize size = TQFontMetrics(m_font).size(AlignHCenter, m_desktopName);
size.setHeight(size.height() +
- (kapp->style().tqpixelMetric(TQStyle::PM_DefaultFrameWidth) * 2 + 1));
+ (kapp->style().pixelMetric(TQStyle::PM_DefaultFrameWidth) * 2 + 1));
return size;
}
diff --git a/kicker/kicker/ui/removeapplet_mnu.cpp b/kicker/kicker/ui/removeapplet_mnu.cpp
index 3c14a74aa..2e0543dae 100644
--- a/kicker/kicker/ui/removeapplet_mnu.cpp
+++ b/kicker/kicker/ui/removeapplet_mnu.cpp
@@ -63,7 +63,7 @@ void PanelRemoveAppletMenu::slotAboutToShow()
}
items.append(PanelMenuItemInfo(container->icon(),
- container->visibleName().tqreplace("&", "&&"),
+ container->visibleName().replace("&", "&&"),
id));
++id;
++it;
diff --git a/kicker/kicker/ui/removeextension_mnu.cpp b/kicker/kicker/ui/removeextension_mnu.cpp
index e1d8d62c4..9d5d80d2b 100644
--- a/kicker/kicker/ui/removeextension_mnu.cpp
+++ b/kicker/kicker/ui/removeextension_mnu.cpp
@@ -57,7 +57,7 @@ void PanelRemoveExtensionMenu::slotAboutToShow()
for (ExtensionList::iterator it = m_containers.begin(); it != itEnd; ++it)
{
const AppletInfo info = (*it)->info();
- TQString name = info.name().tqreplace("&", "&&");
+ TQString name = info.name().replace("&", "&&");
switch ((*it)->position())
{
case KPanelExtension::Top:
diff --git a/kicker/kicker/ui/service_mnu.cpp b/kicker/kicker/ui/service_mnu.cpp
index 2d6287bb9..3042eddfe 100644
--- a/kicker/kicker/ui/service_mnu.cpp
+++ b/kicker/kicker/ui/service_mnu.cpp
@@ -230,8 +230,8 @@ void PanelServiceMenu::fillMenu(KServiceGroup::Ptr& _root,
TQString inlineHeaderName = g->showInlineHeader() ? groupCaption : "";
// Item names may contain ampersands. To avoid them being converted
- // to accelerators, tqreplace them with two ampersands.
- groupCaption.tqreplace("&", "&&");
+ // to accelerators, replace them with two ampersands.
+ groupCaption.replace("&", "&&");
if ( nbChildCount == 1 && g->allowInline() && g->inlineAlias())
{
@@ -411,7 +411,7 @@ void PanelServiceMenu::insertMenuItem(KService::Ptr & s, int nId,
if (KickerSettings::menuEntryFormat() == KickerSettings::NameAndDescription)
{
if ((!suppressGenericNames ||
- !suppressGenericNames->tqcontains(s->untranslatedGenericName())) &&
+ !suppressGenericNames->contains(s->untranslatedGenericName())) &&
serviceName.find(comment, 0, true) == -1)
{
if (comment.find(serviceName, 0, true) == -1)
@@ -449,8 +449,8 @@ void PanelServiceMenu::insertMenuItem(KService::Ptr & s, int nId,
return;
// item names may contain ampersands. To avoid them being converted
- // to accelerators, tqreplace them with two ampersands.
- serviceName.tqreplace("&", "&&");
+ // to accelerators, replace them with two ampersands.
+ serviceName.replace("&", "&&");
TQString icon = s->icon();
if (icon=="unknown")
@@ -544,7 +544,7 @@ bool PanelServiceMenu::highlightMenuItem( const TQString &menuItemId )
void PanelServiceMenu::slotExec(int id)
{
- if (!entryMap_.tqcontains(id))
+ if (!entryMap_.contains(id))
{
return;
}
@@ -578,7 +578,7 @@ void PanelServiceMenu::mouseReleaseEvent(TQMouseEvent * ev)
return;
}
- if (!entryMap_.tqcontains(id))
+ if (!entryMap_.contains(id))
{
kdDebug(1210) << "Cannot find service with menu id " << id << endl;
return;
@@ -695,7 +695,7 @@ void PanelServiceMenu::slotContextMenu(int selected)
case EditItem:
proc = new KProcess(this);
- *proc << KStandardDirs::findExe(TQString::tqfromLatin1("kmenuedit"));
+ *proc << KStandardDirs::findExe(TQString::fromLatin1("kmenuedit"));
*proc << "/"+relPath_ << static_cast<KService *>(contextKSycocaEntry_)->menuId();
proc->start();
break;
@@ -739,7 +739,7 @@ void PanelServiceMenu::slotContextMenu(int selected)
case EditMenu:
proc = new KProcess(this);
- *proc << KStandardDirs::findExe(TQString::tqfromLatin1("kmenuedit"));
+ *proc << KStandardDirs::findExe(TQString::fromLatin1("kmenuedit"));
*proc << "/"+static_cast<KServiceGroup *>(contextKSycocaEntry_)->relPath();
proc->start();
break;
@@ -769,7 +769,7 @@ void PanelServiceMenu::mouseMoveEvent(TQMouseEvent * ev)
if (id < serviceMenuStartId())
return;
- if (!entryMap_.tqcontains(id)) {
+ if (!entryMap_.contains(id)) {
kdDebug(1210) << "Cannot find service with menu id " << id << endl;
return;
}
@@ -838,7 +838,7 @@ void PanelServiceMenu::dragEnterEvent(TQDragEnterEvent *event)
void PanelServiceMenu::dragLeaveEvent(TQDragLeaveEvent *)
{
// see PanelServiceMenu::dragEnterEvent why this is nescessary
- if (!frameGeometry().tqcontains(TQCursor::pos()))
+ if (!frameGeometry().contains(TQCursor::pos()))
{
KURLDrag::setTarget(0);
}
@@ -932,12 +932,12 @@ void PanelServiceMenu::setSearchString(const TQString &searchString)
int id = *menuItemIt;
KService* s = dynamic_cast< KService* >( static_cast< KSycocaEntry* >( entryMap_[ id ]));
TQString menuText = text(id);
- if (menuText.tqcontains(searchString, false) > 0
- || ( s != NULL && ( s->name().tqcontains(searchString, false) > 0
- || s->exec().tqcontains(searchString, false) > 0
- || s->comment().tqcontains(searchString, false) > 0
- || s->genericName().tqcontains(searchString, false) > 0
- || s->exec().tqcontains(searchString, false) > 0 )
+ if (menuText.contains(searchString, false) > 0
+ || ( s != NULL && ( s->name().contains(searchString, false) > 0
+ || s->exec().contains(searchString, false) > 0
+ || s->comment().contains(searchString, false) > 0
+ || s->genericName().contains(searchString, false) > 0
+ || s->exec().contains(searchString, false) > 0 )
)) {
setItemEnabled(id, true);
foundSomething = true;
@@ -951,7 +951,7 @@ void PanelServiceMenu::setSearchString(const TQString &searchString)
/*for (int i=count()-1; i>=0; --i) {
int id = idAt(i);
TQString menuText = text(id);
- if (menuText.tqcontains(searchString, false) > 0) {
+ if (menuText.contains(searchString, false) > 0) {
setItemEnabled(id, true);
foundSomething = true;
nonemptyMenus.insert(id);
@@ -995,7 +995,7 @@ void PanelServiceMenu::updateRecentlyUsedApps(KService::Ptr &service)
TQString strItem(service->desktopEntryPath());
// don't add an item from root kmenu level
- if (!strItem.tqcontains('/'))
+ if (!strItem.contains('/'))
{
return;
}