diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /k9author/k9import.cpp | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip |
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'k9author/k9import.cpp')
-rw-r--r-- | k9author/k9import.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/k9author/k9import.cpp b/k9author/k9import.cpp index 774bc8e..993f2d1 100644 --- a/k9author/k9import.cpp +++ b/k9author/k9import.cpp @@ -20,19 +20,19 @@ #include "k9haldevice.h" #include "k9config.h" #include "k9burndvd.h" -#include <qdir.h> +#include <tqdir.h> #include <kfiledialog.h> #include <kcombobox.h> #include <kiconloader.h> #include <kselect.h> #include "k9processlist.h" -k9Import::k9Import(QWidget* parent, const char* name,k9CdDrives *_drives) - : import(parent,name) { - m_parent=(k9Copy*) parent; +k9Import::k9Import(TQWidget* tqparent, const char* name,k9CdDrives *_drives) + : import(tqparent,name) { + m_parent=(k9Copy*) tqparent; drives=_drives; - connect(&m_newDVD,SIGNAL(sigAddTitle()),this,SLOT(titleAdded())); + connect(&m_newDVD,TQT_SIGNAL(sigAddTitle()),this,TQT_SLOT(titleAdded())); } k9Import::~k9Import() {} @@ -42,13 +42,13 @@ k9Import::~k9Import() {} /*$SPECIALIZATION$*/ void k9Import::init() { - m_root=new QListViewItem(lvDVD,i18n("Root Menu")); + m_root=new TQListViewItem(lvDVD,i18n("Root Menu")); m_root->setOpen(true); m_root->setPixmap(0,SmallIcon("dvd_unmount")); emit aviFileSelected(NULL); - connect(drives,SIGNAL(deviceAdded( k9CdDrive*)),this,SLOT(deviceAdded( k9CdDrive* ))); - connect(drives,SIGNAL(deviceRemoved( k9CdDrive*)),this,SLOT(deviceRemoved( k9CdDrive* ))); + connect(drives,TQT_SIGNAL(deviceAdded( k9CdDrive*)),this,TQT_SLOT(deviceAdded( k9CdDrive* ))); + connect(drives,TQT_SIGNAL(deviceRemoved( k9CdDrive*)),this,TQT_SLOT(deviceRemoved( k9CdDrive* ))); readDrives(); m_root->setSelected(true); @@ -73,7 +73,7 @@ void k9Import::deviceAdded(k9CdDrive *_drive) { void k9Import::deviceRemoved(k9CdDrive *_drive) { - int i=recorderList.find(_drive); + int i=recorderList.tqfind(_drive); recorderList.remove( i); cbOutputDev->removeItem(i+2); @@ -83,7 +83,7 @@ void k9Import::addDrive(k9CdDrive *drive) { #ifdef HAVE_HAL if (drive->getDevice()!=NULL) { k9HalDevice *dev=drive->getDevice(); - connect(dev,SIGNAL(volumeChanged( const QString &,const QString &)),this,SLOT(volumeChanged(const QString&,const QString&))); + connect(dev,TQT_SIGNAL(volumeChanged( const TQString &,const TQString &)),this,TQT_SLOT(volumeChanged(const TQString&,const TQString&))); } #endif if (drive->canWriteDVD) { @@ -93,14 +93,14 @@ void k9Import::addDrive(k9CdDrive *drive) { } -void k9Import::volumeChanged(const QString &device,const QString &volumeName) {} +void k9Import::volumeChanged(const TQString &device,const TQString &volumeName) {} #include "k9import.moc" -QListViewItem* k9Import::getRoot() const { +TQListViewItem* k9Import::getRoot() const { return m_root; } @@ -112,7 +112,7 @@ void k9Import::aviFileUpdated(k9AviFile *_aviFile) { while (itemChapter) { if (itemChapter->getAviFile()==_aviFile) { itemChapter->setText(1,_aviFile->getStart().toString("hh:mm:ss") +" - "+_aviFile->getEnd().toString("hh:mm:ss")); - itemChapter->setPixmap(0,QPixmap(_aviFile->getImage().smoothScale(50,40))); + itemChapter->setPixmap(0,TQPixmap(_aviFile->getImage().smoothScale(50,40))); } itemChapter=(k9LvItemImport*)itemChapter->nextSibling(); } @@ -121,12 +121,12 @@ void k9Import::aviFileUpdated(k9AviFile *_aviFile) { updateTotalTime(); } -void k9Import::buttonUpdated(k9MenuButton *_button, const QImage &_image) { +void k9Import::buttonUpdated(k9MenuButton *_button, const TQImage &_image) { k9LvItemImport *itemTitle = (k9LvItemImport*)m_root->firstChild(); while (itemTitle) { if (itemTitle->getTitle()->getButton()==_button) { - QImage img=_image.smoothScale(50,40,QImage::ScaleFree); - QPixmap pix(img); + TQImage img=_image.smoothScale(50,40,TQ_ScaleFree); + TQPixmap pix(img); itemTitle->setPixmap(0,pix); } itemTitle=(k9LvItemImport*)itemTitle->nextSibling(); @@ -135,7 +135,7 @@ void k9Import::buttonUpdated(k9MenuButton *_button, const QImage &_image) { -void k9Import::lvDVDItemSelected (QListViewItem *_item) { +void k9Import::lvDVDItemSelected (TQListViewItem *_item) { k9LvItemImport *item=(k9LvItemImport*)_item; switch (_item->rtti()) { @@ -152,7 +152,7 @@ void k9Import::lvDVDItemSelected (QListViewItem *_item) { } } -void k9Import::setProgressWindow(QWidget *_widget) { +void k9Import::setProgressWindow(TQWidget *_widget) { m_toolView=m_parent->setToolWindow(_widget,KDockWidget::DockRight,i18n("processing"),i18n("processing")); m_dockWidget = m_parent->getVisibleDock(); m_parent->setActions( false); @@ -171,15 +171,15 @@ void k9Import::removeProgressWindow() { } void k9Import::execute() { - QString filename; + TQString filename; k9Config config; - QString outputDir=config.getPrefOutput(); + TQString outputDir=config.getPrefOutput(); if (cbOutputDev->currentItem() ==0) { - filename=KFileDialog::getSaveFileName (QDir::homeDirPath(),"*.iso", 0,i18n("Save image to disk")); + filename=KFileDialog::getSaveFileName (TQDir::homeDirPath(),"*.iso", 0,i18n("Save image to disk")); if (filename =="") return; } else if (cbOutputDev->currentItem()==1) { - outputDir= KFileDialog::getExistingDirectory(QDir::homeDirPath()); + outputDir= KFileDialog::getExistingDirectory(TQDir::homeDirPath()); if (outputDir=="") return; } @@ -218,7 +218,7 @@ void k9Import::execute() { } -void k9Import::cbFormatActivated(const QString &_format) { +void k9Import::cbFormatActivated(const TQString &_format) { if (_format == "PAL") { m_newDVD.setFormat(k9NewDVD::PAL); m_menuEdit->setFormat(k9MenuEdit::PAL); @@ -244,7 +244,7 @@ void k9Import::titleAdded() { void k9Import::updateTotalTime() { int total=m_newDVD.getTotalTime(); gsTotal->setValue(total/60); - QTime t(0,0,0); + TQTime t(0,0,0); t=t.addSecs(total); lTotal->setText(t.toString("hh:mm:ss")); } |