summaryrefslogtreecommitdiffstats
path: root/kradio3/src/include/aboutwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/src/include/aboutwidget.h')
-rw-r--r--kradio3/src/include/aboutwidget.h84
1 files changed, 43 insertions, 41 deletions
diff --git a/kradio3/src/include/aboutwidget.h b/kradio3/src/include/aboutwidget.h
index c2a8562..3ba3573 100644
--- a/kradio3/src/include/aboutwidget.h
+++ b/kradio3/src/include/aboutwidget.h
@@ -23,27 +23,28 @@
#endif
-#include <qwidget.h>
+#include <tqwidget.h>
/* Unfortunately KDE doesn't provide the class KAboutContainerBase
to public programming, so we have to copy most of that code into
an own class :(
*/
-class QFrame;
+class TQFrame;
class KAboutContainer;
-class QTabWidget;
-class QVBoxLayout;
+class TQTabWidget;
+class TQVBoxLayout;
class KAboutData;
-#include <qlabel.h>
+#include <tqlabel.h>
// copied (and renamed) from kaboutdialog_private.h
// original: KImageTrackLabel
-class KRadioImageTrackLabel : public QLabel
+class KRadioImageTrackLabel : public TQLabel
{
Q_OBJECT
+ TQ_OBJECT
public:
enum MouseMode
@@ -55,24 +56,25 @@ class KRadioImageTrackLabel : public QLabel
};
public:
- KRadioImageTrackLabel( QWidget * parent, const char * name=0, WFlags f=0 );
+ KRadioImageTrackLabel( TQWidget * tqparent, const char * name=0, WFlags f=0 );
signals:
- void mouseTrack( int mode, const QMouseEvent *e );
+ void mouseTrack( int mode, const TQMouseEvent *e );
protected:
- virtual void mousePressEvent( QMouseEvent *e );
- virtual void mouseReleaseEvent( QMouseEvent *e );
- virtual void mouseDoubleClickEvent( QMouseEvent *e );
- virtual void mouseMoveEvent ( QMouseEvent *e );
+ virtual void mousePressEvent( TQMouseEvent *e );
+ virtual void mouseReleaseEvent( TQMouseEvent *e );
+ virtual void mouseDoubleClickEvent( TQMouseEvent *e );
+ virtual void mouseMoveEvent ( TQMouseEvent *e );
};
// copied (and renamed) from kaboutdialog_private.h
// original: KAboutContainerBase
-class KRadioAboutWidget : public QWidget
+class KRadioAboutWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
enum LayoutType
@@ -90,57 +92,57 @@ class KRadioAboutWidget : public QWidget
};
public:
- KRadioAboutWidget(const KAboutData &abtData, int layoutType, QWidget *parent = 0, char *name = 0);
+ KRadioAboutWidget(const KAboutData &abtData, int tqlayoutType, TQWidget *tqparent = 0, char *name = 0);
virtual void show( void );
- virtual QSize sizeHint( void ) const;
+ virtual TQSize tqsizeHint( void ) const;
void setAboutData(const KAboutData &abtData);
- void setTitle( const QString &title );
- void setImage( const QString &fileName );
- void setImageBackgroundColor( const QColor &color );
+ void setTitle( const TQString &title );
+ void setImage( const TQString &fileName );
+ void setImageBackgroundColor( const TQColor &color );
void setImageFrame( bool state );
- void setProduct( const QString &appName, const QString &version,
- const QString &author, const QString &year );
+ void setProduct( const TQString &appName, const TQString &version,
+ const TQString &author, const TQString &year );
- QFrame *addTextPage( const QString &title, const QString &text,
+ TQFrame *addTextPage( const TQString &title, const TQString &text,
bool richText=false, int numLines=10 );
- QFrame *addLicensePage( const QString &title, const QString &text,
+ TQFrame *addLicensePage( const TQString &title, const TQString &text,
int numLines=10 );
- KAboutContainer *addContainerPage( const QString &title,
+ KAboutContainer *addContainerPage( const TQString &title,
int childAlignment = AlignCenter, int innerAlignment = AlignCenter );
- KAboutContainer *addScrolledContainerPage( const QString &title,
+ KAboutContainer *addScrolledContainerPage( const TQString &title,
int childAlignment = AlignCenter, int innerAlignment = AlignCenter );
- QFrame *addEmptyPage( const QString &title );
+ TQFrame *addEmptyPage( const TQString &title );
KAboutContainer *addContainer( int childAlignment, int innerAlignment );
public slots:
- virtual void slotMouseTrack( int mode, const QMouseEvent *e );
- virtual void slotUrlClick( const QString &url );
- virtual void slotMailClick( const QString &name, const QString &address );
+ virtual void slotMouseTrack( int mode, const TQMouseEvent *e );
+ virtual void slotUrlClick( const TQString &url );
+ virtual void slotMailClick( const TQString &name, const TQString &address );
protected:
- virtual void fontChange( const QFont &oldFont );
+ virtual void fontChange( const TQFont &oldFont );
signals:
- void mouseTrack( int mode, const QMouseEvent *e );
- void urlClick( const QString &url );
- void mailClick( const QString &name, const QString &address );
+ void mouseTrack( int mode, const TQMouseEvent *e );
+ void urlClick( const TQString &url );
+ void mailClick( const TQString &name, const TQString &address );
private:
- QMemArray<QWidget*> mContainerList;
+ TQMemArray<TQWidget*> mContainerList;
- QVBoxLayout *mTopLayout;
+ TQVBoxLayout *mTopLayout;
KRadioImageTrackLabel *mImageLabel;
- QLabel *mTitleLabel;
- QLabel *mIconLabel;
- QLabel *mVersionLabel;
- QLabel *mAuthorLabel;
- QFrame *mImageFrame;
- QTabWidget *mPageTab;
- QFrame *mPlainSpace;
+ TQLabel *mTitleLabel;
+ TQLabel *mIconLabel;
+ TQLabel *mVersionLabel;
+ TQLabel *mAuthorLabel;
+ TQFrame *mImageFrame;
+ TQTabWidget *mPageTab;
+ TQFrame *mPlainSpace;
};