summaryrefslogtreecommitdiffstats
path: root/wineconfig/firstrunwizard.py
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2014-09-23 19:40:50 -0500
committerTimothy Pearson <[email protected]>2014-09-23 19:40:50 -0500
commitd28ae74d212baba2c12bbb61c43a4bf348cd0153 (patch)
tree455d1bb252fc2dc6742f9a2d3afc94fbb1ffb122 /wineconfig/firstrunwizard.py
parent138f1893d0aa1fa54f9fd55674a5fc8e24aa07b5 (diff)
downloadtde-guidance-d28ae74d212baba2c12bbb61c43a4bf348cd0153.tar.gz
tde-guidance-d28ae74d212baba2c12bbb61c43a4bf348cd0153.zip
Convert remaining modules to TQt3
This relates to Bug 1995
Diffstat (limited to 'wineconfig/firstrunwizard.py')
-rwxr-xr-xwineconfig/firstrunwizard.py108
1 files changed, 54 insertions, 54 deletions
diff --git a/wineconfig/firstrunwizard.py b/wineconfig/firstrunwizard.py
index e35d0bd..43891b3 100755
--- a/wineconfig/firstrunwizard.py
+++ b/wineconfig/firstrunwizard.py
@@ -44,70 +44,70 @@ class FirstRunWizard(KWizard):
self.setupPageExistingWine()
self.setupPageCreateWine()
self.slotCreateExistingToggled(0)
- #self.connect(self,SIGNAL("selected(const QString &)"),self.slotPageChanged)
+ #self.connect(self,SIGNAL("selected(const TQString &)"),self.slotPageChanged)
- #self.resize(QSize(600,480).expandedTo(self.minimumSizeHint()))
- self.clearWState(Qt.WState_Polished)
+ #self.resize(TQSize(600,480).expandedTo(self.minimumSizeHint()))
+ self.clearWState(TQt.WState_Polished)
def setupPage1(self):
- page1 = QHBox(self,"page1")
+ page1 = TQHBox(self,"page1")
- self.kdewinepicture = QLabel(page1,"kdewinepicture")
- self.kdewinepicture.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.kdewinepicture.sizePolicy().hasHeightForWidth()))
- self.kdewinepicture.setMinimumSize(QSize(140,320))
- self.kdewinepicture.setPixmap(QPixmap(self.imagedir+"kdewinewizard.png"))
+ self.kdewinepicture = TQLabel(page1,"kdewinepicture")
+ self.kdewinepicture.setSizePolicy(TQSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed,0,0,self.kdewinepicture.sizePolicy().hasHeightForWidth()))
+ self.kdewinepicture.setMinimumSize(TQSize(140,320))
+ self.kdewinepicture.setPixmap(TQPixmap(self.imagedir+"kdewinewizard.png"))
#self.kdewinepicture.setScaledContents(1)
- spacer = QWidget(page1)
- spacer.setMinimumSize(QSize(6,300))
+ spacer = TQWidget(page1)
+ spacer.setMinimumSize(TQSize(6,300))
- pagebody = QVBox(page1,"pagebody")
+ pagebody = TQVBox(page1,"pagebody")
page1.setStretchFactor(pagebody,1)
- introtext = QLabel(pagebody,"introtext")
+ introtext = TQLabel(pagebody,"introtext")
introtext.setText(i18n("It appears that you do not yet have a Windows drive set up.\n" +\
"This wizard will help set it up so that you can run windows applications.\n"))
- spacer = QWidget(pagebody)
- spacer.setMinimumSize(QSize(6,20))
+ spacer = TQWidget(pagebody)
+ spacer.setMinimumSize(TQSize(6,20))
self.createinstall = True
- createwinepathchoice = QRadioButton(i18n("Set up the fake windows installation " +\
+ createwinepathchoice = TQRadioButton(i18n("Set up the fake windows installation " +\
"in the following directory:"),pagebody)
self.winepath = self.default_winepath
- hbox = QHBox(pagebody)
+ hbox = TQHBox(pagebody)
hbox.setSpacing(KDialog.spacingHint())
self.winefolderedit = KLineEdit(self.winepath,hbox)
self.urlcompletion = KURLCompletion(KURLCompletion.DirCompletion)
self.winefolderedit.setCompletionObject(self.urlcompletion)
self.winefolderedit.setCompletionMode(TDEGlobalSettings.CompletionPopup)
- self.connect(self.winefolderedit,SIGNAL("textChanged(const QString &)"),self.slotWineFolderEdited)
+ self.connect(self.winefolderedit,SIGNAL("textChanged(const TQString &)"),self.slotWineFolderEdited)
self.browsecreatebutton = KPushButton(i18n("Browse"),hbox)
self.connect(self.browsecreatebutton,SIGNAL("clicked()"),self.slotBrowseClicked)
- spacer = QWidget(pagebody)
- spacer.setMinimumSize(QSize(6,10))
+ spacer = TQWidget(pagebody)
+ spacer.setMinimumSize(TQSize(6,10))
- existingwinepathchoice = QRadioButton(i18n("There is already a fake windows installation " +\
+ existingwinepathchoice = TQRadioButton(i18n("There is already a fake windows installation " +\
"in the following directory:"),pagebody)
- hbox = QHBox(pagebody)
+ hbox = TQHBox(pagebody)
hbox.setSpacing(KDialog.spacingHint())
self.existingwinefolderedit = KLineEdit("",hbox)
self.urlcompletion = KURLCompletion(KURLCompletion.DirCompletion)
self.existingwinefolderedit.setCompletionObject(self.urlcompletion)
self.existingwinefolderedit.setCompletionMode(TDEGlobalSettings.CompletionPopup)
- self.connect(self.existingwinefolderedit,SIGNAL("textChanged(const QString &)"),self.slotWineFolderEdited)
+ self.connect(self.existingwinefolderedit,SIGNAL("textChanged(const TQString &)"),self.slotWineFolderEdited)
self.browseexistingbutton = KPushButton(i18n("Browse"),hbox)
self.connect(self.browseexistingbutton,SIGNAL("clicked()"),self.slotBrowseClicked)
- self.createexistingchoicesgroup = QButtonGroup(pagebody,"createexistingchoicesgroup")
+ self.createexistingchoicesgroup = TQButtonGroup(pagebody,"createexistingchoicesgroup")
self.createexistingchoicesgroup.insert(createwinepathchoice,0)
self.createexistingchoicesgroup.insert(existingwinepathchoice,1)
self.createexistingchoicesgroup.setExclusive(True)
@@ -115,7 +115,7 @@ class FirstRunWizard(KWizard):
self.createexistingchoicesgroup.setButton(0)
self.connect(self.createexistingchoicesgroup,SIGNAL("clicked(int)"),self.slotCreateExistingToggled)
- bottomspacer = QWidget(pagebody)
+ bottomspacer = TQWidget(pagebody)
pagebody.setStretchFactor(bottomspacer,1)
self.addPage( page1, i18n("Setting up your windows drive") )
@@ -126,30 +126,30 @@ class FirstRunWizard(KWizard):
self.setFinishEnabled( page1, False )
def setupPageExistingWine(self):
- self.pageexisting = QHBox(self,"pageexisting")
+ self.pageexisting = TQHBox(self,"pageexisting")
- self.kdewinepicture = QLabel(self.pageexisting,"kdewinepicture")
- self.kdewinepicture.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.kdewinepicture.sizePolicy().hasHeightForWidth()))
- self.kdewinepicture.setMinimumSize(QSize(140,320))
- self.kdewinepicture.setPixmap(QPixmap(self.imagedir+"kdewinewizard.png"))
+ self.kdewinepicture = TQLabel(self.pageexisting,"kdewinepicture")
+ self.kdewinepicture.setSizePolicy(TQSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed,0,0,self.kdewinepicture.sizePolicy().hasHeightForWidth()))
+ self.kdewinepicture.setMinimumSize(TQSize(140,320))
+ self.kdewinepicture.setPixmap(TQPixmap(self.imagedir+"kdewinewizard.png"))
#self.kdewinepicture.setScaledContents(1)
- spacer = QWidget(self.pageexisting)
- spacer.setMinimumSize(QSize(6,300))
+ spacer = TQWidget(self.pageexisting)
+ spacer.setMinimumSize(TQSize(6,300))
valid = wineread.VerifyWineDrive(self.winepath)
- pagebody = QVBox(self.pageexisting,"pagebody")
+ pagebody = TQVBox(self.pageexisting,"pagebody")
self.pageexisting.setStretchFactor(pagebody,1)
- existstext = QLabel(pagebody,"existstext")
+ existstext = TQLabel(pagebody,"existstext")
if valid:
existstext.setText(i18n("A fake windows installation was found."))
else:
existstext.setText(i18n("No fake windows installation was found in\n" +\
self.winepath + "\nPlease go back and create one."))
- bottomspacer = QWidget(pagebody)
+ bottomspacer = TQWidget(pagebody)
pagebody.setStretchFactor(bottomspacer,1)
self.addPage( self.pageexisting, i18n("Setting up your windows drive") )
@@ -160,25 +160,25 @@ class FirstRunWizard(KWizard):
self.setFinishEnabled( self.pageexisting, True )
def setupPageCreateWine(self):
- self.pagecreate = QHBox(self,"pagecreate")
+ self.pagecreate = TQHBox(self,"pagecreate")
- self.kdewinepicture = QLabel(self.pagecreate,"kdewinepicture")
- self.kdewinepicture.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.kdewinepicture.sizePolicy().hasHeightForWidth()))
- self.kdewinepicture.setMinimumSize(QSize(140,320))
- self.kdewinepicture.setPixmap(QPixmap(self.imagedir+"kdewinewizard.png"))
+ self.kdewinepicture = TQLabel(self.pagecreate,"kdewinepicture")
+ self.kdewinepicture.setSizePolicy(TQSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed,0,0,self.kdewinepicture.sizePolicy().hasHeightForWidth()))
+ self.kdewinepicture.setMinimumSize(TQSize(140,320))
+ self.kdewinepicture.setPixmap(TQPixmap(self.imagedir+"kdewinewizard.png"))
#self.kdewinepicture.setScaledContents(1)
- spacer = QWidget(self.pagecreate)
- spacer.setMinimumSize(QSize(6,300))
+ spacer = TQWidget(self.pagecreate)
+ spacer.setMinimumSize(TQSize(6,300))
- pagebody = QVBox(self.pagecreate,"pagebody")
+ pagebody = TQVBox(self.pagecreate,"pagebody")
self.pagecreate.setStretchFactor(pagebody,1)
- self.createdtext = QLabel(pagebody,"existstext")
+ self.createdtext = TQLabel(pagebody,"existstext")
self.createdtext.setText(i18n("A fake windows installation was created for you in\n" +\
self.winepath))
- bottomspacer = QWidget(pagebody)
+ bottomspacer = TQWidget(pagebody)
pagebody.setStretchFactor(bottomspacer,1)
self.addPage( self.pagecreate, i18n("Setting up your windows drive") )
@@ -189,21 +189,21 @@ class FirstRunWizard(KWizard):
self.setFinishEnabled( self.pagecreate, True )
def setupPageVersion(self):
- self.pageversion = QHBox(self,"pageversion")
+ self.pageversion = TQHBox(self,"pageversion")
- self.kdewinepicture = QLabel(self.pageversion,"kdewinepicture")
- self.kdewinepicture.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.kdewinepicture.sizePolicy().hasHeightForWidth()))
- self.kdewinepicture.setMinimumSize(QSize(140,320))
- self.kdewinepicture.setPixmap(QPixmap(self.imagedir+"kdewinewizard.png"))
+ self.kdewinepicture = TQLabel(self.pageversion,"kdewinepicture")
+ self.kdewinepicture.setSizePolicy(TQSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed,0,0,self.kdewinepicture.sizePolicy().hasHeightForWidth()))
+ self.kdewinepicture.setMinimumSize(TQSize(140,320))
+ self.kdewinepicture.setPixmap(TQPixmap(self.imagedir+"kdewinewizard.png"))
#self.kdewinepicture.setScaledContents(1)
- spacer = QWidget(self.pageversion)
- spacer.setMinimumSize(QSize(6,300))
+ spacer = TQWidget(self.pageversion)
+ spacer.setMinimumSize(TQSize(6,300))
- pagebody = QVBox(self.pageversion,"pagebody")
+ pagebody = TQVBox(self.pageversion,"pagebody")
self.pageversion.setStretchFactor(pagebody,1)
- versiontext = QLabel(pagebody,"versiontext")
+ versiontext = TQLabel(pagebody,"versiontext")
versiontext.setText(i18n("What windows version would you like to emulate?\n"))
self.winversions = wineread.winversions
@@ -214,7 +214,7 @@ class FirstRunWizard(KWizard):
self.connect(self.versioncombo,SIGNAL("activated(int)"),self.slotVersionActivated)
self.__selectWinVer(self.verid)
- bottomspacer = QWidget(pagebody)
+ bottomspacer = TQWidget(pagebody)
pagebody.setStretchFactor(bottomspacer,1)
self.addPage( self.pageversion, i18n("Setting up your windows drive") )