diff options
Diffstat (limited to 'src/hitwidget.cpp')
-rw-r--r-- | src/hitwidget.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/hitwidget.cpp b/src/hitwidget.cpp index 33d021d..f62d68e 100644 --- a/src/hitwidget.cpp +++ b/src/hitwidget.cpp @@ -23,18 +23,18 @@ #include <kpushbutton.h> #include <kdebug.h> #include <kiconloader.h> -#include <qtoolbutton.h> +#include <ntqtoolbutton.h> #include <klocale.h> #include <kurllabel.h> #include <kglobalsettings.h> -#include <qlayout.h> +#include <ntqlayout.h> /*#include <konq_filetip.h>*/ -#include <qscrollview.h> -#include <qcombobox.h> +#include <ntqscrollview.h> +#include <ntqcombobox.h> -HitWidget::HitWidget(QString uri, QString mimetype, KWidgetListbox *parent, const char *name) +HitWidget::HitWidget(TQString uri, TQString mimetype, KWidgetListbox *parent, const char *name) : HitWidgetLayout(parent, name), m_uri(uri), m_mimetype(mimetype), m_collapsed(false), - m_was_collapsed(false), m_icon(QString::null) + m_was_collapsed(false), m_icon(TQString::null) { HitWidgetLayoutLayout->setMargin(4); toolButton1->setEnabled(false); @@ -55,7 +55,7 @@ HitWidget::~HitWidget() /* delete pFileTip;*/ } -void HitWidget::setIcon(const QString name) +void HitWidget::setIcon(const TQString name) { m_icon = name; if (m_collapsed) @@ -89,8 +89,8 @@ void HitWidget::setCollapsed(bool collapsed) description->setHidden(true); properties->setHidden(true); score->setHidden(true); - icon->setMinimumSize( QSize( 64, 16 ) ); - icon->setMaximumSize( QSize( 64, 16 ) ); + icon->setMinimumSize( TQSize( 64, 16 ) ); + icon->setMaximumSize( TQSize( 64, 16 ) ); m_collapsed = collapsed; } else { @@ -99,8 +99,8 @@ void HitWidget::setCollapsed(bool collapsed) description->setHidden(false); properties->setHidden(false); //score->setHidden(false); - icon->setMinimumSize( QSize( 64, 64 ) ); - icon->setMaximumSize( QSize( 64, 64 ) ); + icon->setMinimumSize( TQSize( 64, 64 ) ); + icon->setMaximumSize( TQSize( 64, 64 ) ); m_collapsed = collapsed; emit uncollapsed(this); } @@ -114,27 +114,27 @@ bool HitWidget::isCollapsed() const return m_collapsed; } -void HitWidget::setDescriptionText(QString text) +void HitWidget::setDescriptionText(TQString text) { description->setText(text); } -void HitWidget::setPropertiesText(QString text) +void HitWidget::setPropertiesText(TQString text) { properties->setText(text); } -void HitWidget::insertHeaderWidget( int index, QWidget * widget) +void HitWidget::insertHeaderWidget( int index, TQWidget * widget) { layoutHeader->insertWidget(index,widget); } -void HitWidget::insertHitWidget( int index, QWidget * widget) +void HitWidget::insertHitWidget( int index, TQWidget * widget) { layoutButton->insertWidget(index,widget); } -void HitWidget::insertTextWidget( int index, QWidget * widget) +void HitWidget::insertTextWidget( int index, TQWidget * widget) { layoutText->insertWidget(index,widget); } @@ -144,18 +144,18 @@ void HitWidget::insertHitSpacing( int index, int size) layoutButton->insertSpacing(index,size); } -QString HitWidget::uri() const +TQString HitWidget::uri() const { return m_uri; } -void HitWidget::setUri(const QString uri) +void HitWidget::setUri(const TQString uri) { /* pFileTip->setItem(0L);*/ m_uri = uri; } -QString HitWidget::mimetype() const +TQString HitWidget::mimetype() const { return m_mimetype; } @@ -179,17 +179,17 @@ void HitWidget::adjustSize() HitWidgetLayout::adjustSize(); } -bool HitWidget::eventFilter( QObject *, QEvent * ) +bool HitWidget::eventFilter( TQObject *, TQEvent * ) { /* if ( obj == icon && !m_uri.isEmpty() ) { - if ( ev->type() == QEvent::Enter && parent() ) { + if ( ev->type() == TQEvent::Enter && parent() ) { pFileTip->setOptions(true, true, 6); KFileItem *fileitem=new KFileItem(m_uri,m_mimetype,KFileItem::Unknown); - QPoint viewport = qsv->viewport()->mapFromGlobal(mapToGlobal(icon->pos())); - QRect qr(qsv->viewportToContents(viewport),QSize(icon->width()*2,icon->height())); + TQPoint viewport = qsv->viewport()->mapFromGlobal(mapToGlobal(icon->pos())); + TQRect qr(qsv->viewportToContents(viewport),TQSize(icon->width()*2,icon->height())); pFileTip->setItem(fileitem,qr,icon->pixmap()); } - else if ( ev->type() == QEvent::Leave ) + else if ( ev->type() == TQEvent::Leave ) pFileTip->setItem(0L); return HitWidgetLayout::eventFilter( obj, ev ); }*/ @@ -198,10 +198,10 @@ bool HitWidget::eventFilter( QObject *, QEvent * ) void HitWidget::changeTerminalUrl(int ) { - QString app = score->currentText(); - QString title = shellTitles[score->currentText()]; + TQString app = score->currentText(); + TQString title = shellTitles[score->currentText()]; - icon->setURL(QString("%1 %2").arg(app).arg(title)); + icon->setURL(TQString("%1 %2").arg(app).arg(title)); } |