From 769e63d24adf5c844137484f06a972fcce732d6a Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 06:10:56 +0000 Subject: TQt4 port kmplayer This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmplayer@1238840 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/kmplayer.h | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) (limited to 'src/kmplayer.h') diff --git a/src/kmplayer.h b/src/kmplayer.h index f2faa92..fc76d36 100644 --- a/src/kmplayer.h +++ b/src/kmplayer.h @@ -33,9 +33,9 @@ static const int id_status_msg = 1; static const int id_status_timer = 2; -class QPopupMenu; -class QMenuItem; -class QListViewItem; +class TQPopupMenu; +class TQMenuItem; +class TQListViewItem; class KProcess; class KMPlayerBroadcastConfig; class KMPlayerFFServerConfig; @@ -58,9 +58,10 @@ namespace KMPlayer { class KMPlayerApp : public KMainWindow { Q_OBJECT + TQ_OBJECT public: - KMPlayerApp (QWidget* parent=0, const char* name=0); + KMPlayerApp (TQWidget* tqparent=0, const char* name=0); ~KMPlayerApp (); void openDocumentFile (const KURL& url=KURL()); void addURL (const KURL& url); @@ -97,7 +98,7 @@ public slots: void slotViewToolBar (); void slotViewStatusBar (); void slotViewMenuBar (); - void slotStatusMsg (const QString &text); + void slotStatusMsg (const TQString &text); void slotSourceChanged (KMPlayer::Source *, KMPlayer::Source *); private slots: void dvdNav (); @@ -126,8 +127,8 @@ private slots: void slotConfigureToolbars (); void slotClearHistory (); void windowVideoConsoleToggled (int wt); - void playListItemSelected (QListViewItem *); - void playListItemDropped (QDropEvent * e, QListViewItem * after); + void playListItemSelected (TQListViewItem *); + void playListItemDropped (TQDropEvent * e, TQListViewItem * after); void playListItemMoved (); void menuDropInList (); void menuDropInGroup (); @@ -135,10 +136,10 @@ private slots: void menuDeleteNode (); void menuMoveUpNode (); void menuMoveDownNode (); - void preparePlaylistMenu (KMPlayer::PlayListItem *, QPopupMenu *); + void preparePlaylistMenu (KMPlayer::PlayListItem *, TQPopupMenu *); private: - void menuItemClicked (QPopupMenu * menu, int id); + void menuItemClicked (TQPopupMenu * menu, int id); void minimalMode (bool deco=true); KConfig * config; KSystemTray * m_systray; @@ -167,18 +168,18 @@ private: KToggleAction * viewStatusBar; KToggleAction * viewMenuBar; KToggleAction * viewKeepRatio; - QMenuItem * m_sourcemenu; - QPopupMenu * m_dvdmenu; - QPopupMenu * m_dvdnavmenu; - QPopupMenu * m_vcdmenu; - QPopupMenu * m_audiocdmenu; - QPopupMenu * m_tvmenu; - QPopupMenu * m_dropmenu; + TQMenuItem * m_sourcemenu; + TQPopupMenu * m_dvdmenu; + TQPopupMenu * m_dvdnavmenu; + TQPopupMenu * m_vcdmenu; + TQPopupMenu * m_audiocdmenu; + TQPopupMenu * m_tvmenu; + TQPopupMenu * m_dropmenu; KMPlayerFFServerConfig * m_ffserverconfig; KMPlayerBroadcastConfig * m_broadcastconfig; - QCString m_dcopName; + TQCString m_dcopName; KURL::List m_drop_list; - QListViewItem * m_drop_after; + TQListViewItem * m_drop_after; int edit_tree_id; int manip_tree_id; int last_time_left; @@ -195,10 +196,10 @@ private: class KMPLAYER_NO_EXPORT FileDocument : public KMPlayer::Document { public: - FileDocument (short id, const QString &, KMPlayer::PlayListNotify * notify = 0L); - KMPlayer::NodePtr childFromTag (const QString & tag); - void readFromFile (const QString & file); - void writeToFile (const QString & file); + FileDocument (short id, const TQString &, KMPlayer::PlayListNotify * notify = 0L); + KMPlayer::NodePtr childFromTag (const TQString & tag); + void readFromFile (const TQString & file); + void writeToFile (const TQString & file); }; #endif // KMPLAYER_H -- cgit v1.2.1