diff options
Diffstat (limited to 'kicker/kicker/buttons')
-rw-r--r-- | kicker/kicker/buttons/browserbutton.cpp | 2 | ||||
-rw-r--r-- | kicker/kicker/buttons/desktopbutton.cpp | 2 | ||||
-rw-r--r-- | kicker/kicker/buttons/knewbutton.cpp | 40 | ||||
-rw-r--r-- | kicker/kicker/buttons/nonkdeappbutton.cpp | 2 |
4 files changed, 23 insertions, 23 deletions
diff --git a/kicker/kicker/buttons/browserbutton.cpp b/kicker/kicker/buttons/browserbutton.cpp index 2e2cb5a2d..4a8c9a7af 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::fromLatin1( "inode/directory" ), KFileItem::Unknown ); + KFileItem item( path, TQString::tqfromLatin1( "inode/directory" ), KFileItem::Unknown ); KonqOperations::doDrop( &item, path, ev, this ); PanelButton::dropEvent(ev); } diff --git a/kicker/kicker/buttons/desktopbutton.cpp b/kicker/kicker/buttons/desktopbutton.cpp index 9f23741e5..71bcaa2e5 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::fromLatin1( "inode/directory" ), KFileItem::Unknown ); + KFileItem item( dPath, TQString::tqfromLatin1( "inode/directory" ), KFileItem::Unknown ); KonqOperations::doDrop( &item, dPath, ev, this ); PanelButton::dropEvent(ev); } diff --git a/kicker/kicker/buttons/knewbutton.cpp b/kicker/kicker/buttons/knewbutton.cpp index 9c9f438ac..b8144d735 100644 --- a/kicker/kicker/buttons/knewbutton.cpp +++ b/kicker/kicker/buttons/knewbutton.cpp @@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include <tqtooltip.h> #include <tqpainter.h> #include <tqcursor.h> -#include <private/qeffects_p.h> +#include <tqeffects_p.h> #include <klocale.h> #include <kapplication.h> @@ -63,14 +63,14 @@ KNewButton::KNewButton( TQWidget* parent ) m_mouseInside = false; m_drag = false; - setIconAlignment((Qt::AlignmentFlags)(AlignTop|AlignRight)); + setIconAlignment((TQ_Alignment)(AlignTop|AlignRight)); setAcceptDrops(true); setIcon("kmenu-suse"); setDrawArrow(false); m_movie = new TQMovie(locate("data", "kicker/pics/kmenu_basic.mng")); m_movie->connectUpdate(this, TQT_SLOT(updateMovie())); - m_movie->connectStatus(this, TQT_SLOT(slotStatus(int))); + m_movie->connectStatus(TQT_TQOBJECT(this), TQT_SLOT(slotStatus(int))); m_movie->connectResize(this, TQT_SLOT(slotSetSize(const TQSize&))); TQApplication::desktop()->screen()->installEventFilter(this); @@ -99,7 +99,7 @@ TQColor KNewButton::borderColor() const QRgb rgb = img.pixel(orientation() == Qt::Horizontal ? img.width() - i - 1 : i, 2); - if (qGreen(rgb) > 0x50) + if (tqGreen(rgb) > 0x50) return rgb; } @@ -134,24 +134,24 @@ void KNewButton::setPopupDirection(KPanelApplet::Direction d) switch (d) { case KPanelApplet::Left: - setIconAlignment((Qt::AlignmentFlags)(AlignTop|AlignLeft)); + setIconAlignment((TQ_Alignment)(AlignTop|AlignLeft)); m_movie = new TQMovie(locate("data", "kicker/pics/kmenu_vertical.mng")); break; case KPanelApplet::Right: - setIconAlignment((Qt::AlignmentFlags)(AlignTop|AlignRight)); + setIconAlignment((TQ_Alignment)(AlignTop|AlignRight)); m_movie = new TQMovie(locate("data", "kicker/pics/kmenu_vertical.mng")); break; case KPanelApplet::Up: - setIconAlignment((Qt::AlignmentFlags)(AlignTop|AlignHCenter)); + setIconAlignment((TQ_Alignment)(AlignTop|AlignHCenter)); m_movie = new TQMovie(locate("data", "kicker/pics/kmenu_basic.mng")); break; case KPanelApplet::Down: - setIconAlignment((Qt::AlignmentFlags)(AlignBottom|AlignHCenter)); + setIconAlignment((TQ_Alignment)(AlignBottom|AlignHCenter)); m_movie = new TQMovie(locate("data", "kicker/pics/kmenu_flipped.mng")); } m_movie->connectUpdate(this, TQT_SLOT(updateMovie())); - m_movie->connectStatus(this, TQT_SLOT(slotStatus(int))); + m_movie->connectStatus(TQT_TQOBJECT(this), TQT_SLOT(slotStatus(int))); m_movie->connectResize(this, TQT_SLOT(slotSetSize(const TQSize&))); } @@ -214,8 +214,8 @@ bool KNewButton::eventFilter(TQObject *o, TQEvent *e) e->type() == TQEvent::MouseButtonPress || e->type() == TQEvent::MouseButtonDblClick ) { - TQMouseEvent *me = static_cast<TQMouseEvent *>(e); - if (rect().contains(mapFromGlobal(me->globalPos()))) + TQMouseEvent *me = TQT_TQMOUSEEVENT(e); + if (TQT_TQRECT_OBJECT(rect()).tqcontains(mapFromGlobal(me->globalPos()))) { if (m_pressedDuringPopup && m_popup && m_openTimer != -1 && (me->button() & Qt::LeftButton) ) @@ -225,8 +225,8 @@ bool KNewButton::eventFilter(TQObject *o, TQEvent *e) if (KickerSettings::kickoffDrawGeekoEye() && e->type() == TQEvent::MouseMove) { - TQMouseEvent *me = static_cast<TQMouseEvent *>(e); - if ((me->state() & MouseButtonMask) == NoButton) + TQMouseEvent *me = TQT_TQMOUSEEVENT(e); + if ((me->state() & Qt::MouseButtonMask) == Qt::NoButton) drawEye(); } @@ -286,7 +286,7 @@ void KNewButton::drawEye() } m_active_pixmap = pixmap.xForm(matrix); - repaint(false); + tqrepaint(false); } #undef eye_x #undef eye_y @@ -355,9 +355,9 @@ void KNewButton::mouseMoveEvent(TQMouseEvent* e) { KButton::mouseMoveEvent(e); - m_mouseInside = m_sloppyRegion.contains(e->pos()); + m_mouseInside = m_sloppyRegion.tqcontains(e->pos()); - if ( m_sloppyRegion.contains(e->pos())) + if ( m_sloppyRegion.tqcontains(e->pos())) { if (m_hoverTimer == -1 && KickerSettings::openOnHover()) m_hoverTimer = startTimer(kMax(200,TQApplication::doubleClickInterval()/2)); @@ -420,16 +420,16 @@ void KNewButton::slotExecMenu() { switch (popupDirection()) { case KPanelApplet::Left: - qScrollEffect(m_popup, QEffects::LeftScroll); + qScrollEffect(m_popup, TQEffects::LeftScroll); break; case KPanelApplet::Up: - qScrollEffect(m_popup, QEffects::UpScroll); + qScrollEffect(m_popup, TQEffects::UpScroll); break; case KPanelApplet::Right: - qScrollEffect(m_popup, QEffects::RightScroll); + qScrollEffect(m_popup, TQEffects::RightScroll); break; case KPanelApplet::Down: - qScrollEffect(m_popup, QEffects::DownScroll); + qScrollEffect(m_popup, TQEffects::DownScroll); break; } } diff --git a/kicker/kicker/buttons/nonkdeappbutton.cpp b/kicker/kicker/buttons/nonkdeappbutton.cpp index 29b7ddb2e..e91a06f37 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 "moc" file so that the KDE build system knows to create it +// we include the "tqmoc" 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 |