diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-05 10:21:14 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 11:06:39 +0900 |
| commit | 10f0a51a1784f390ef81bf59ab5ffc9342de3c81 (patch) | |
| tree | 64318c193d1fa25b7cc58ef3999085cdaabcf1c5 /mountconfig | |
| parent | a57f888ae0aa9153b837b2fb308003dac9666969 (diff) | |
| download | tde-guidance-10f0a51a.tar.gz tde-guidance-10f0a51a.zip | |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit bde8dd4103c094d23e7a96d9754d691e385f1cac)
Diffstat (limited to 'mountconfig')
| -rw-r--r-- | mountconfig/SMBShareSelectDialog.py | 22 | ||||
| -rw-r--r-- | mountconfig/SimpleCommandRunner.py | 4 | ||||
| -rw-r--r-- | mountconfig/fuser.py | 12 | ||||
| -rwxr-xr-x | mountconfig/mountconfig.py | 66 | ||||
| -rw-r--r-- | mountconfig/sizeview.py | 2 |
5 files changed, 53 insertions, 53 deletions
diff --git a/mountconfig/SMBShareSelectDialog.py b/mountconfig/SMBShareSelectDialog.py index 3c2915b..1fc32b5 100644 --- a/mountconfig/SMBShareSelectDialog.py +++ b/mountconfig/SMBShareSelectDialog.py @@ -55,17 +55,17 @@ class SMBShareSelectDialog(KDialogBase): self.treeview.header().hide() self.treeview.setRootIsDecorated(True) - self.connect(self.treeview,SIGNAL("expanded(TQListViewItem *)"),self.slotNodeExpanded) - self.connect(self.treeview,SIGNAL("selectionChanged(TQListViewItem *)"),self.slotNodeSelected) - self.connect(self.treeview,SIGNAL("clicked(TQListViewItem *)"),self.slotClicked) + self.connect(self.treeview,TQ_SIGNAL("expanded(TQListViewItem *)"),self.slotNodeExpanded) + self.connect(self.treeview,TQ_SIGNAL("selectionChanged(TQListViewItem *)"),self.slotNodeSelected) + self.connect(self.treeview,TQ_SIGNAL("clicked(TQListViewItem *)"),self.slotClicked) self.dirlister = KDirLister() self.dirlister.setDirOnlyMode(True) self.dirlister.setAutoUpdate(False) self.dirlister.setAutoErrorHandlingEnabled(True,self) - self.connect(self.dirlister,SIGNAL("newItems(const KFileItemList &)"),self.slotNewItems) - self.connect(self.dirlister,SIGNAL("completed()"),self.slotDirListCompleted) - self.connect(self.dirlister,SIGNAL("canceled()"),self.slotDirListCanceled) - self.connect(self.dirlister,SIGNAL("redirection(const KURL &,const KURL &)"),self.slotDirListRedirection) + self.connect(self.dirlister,TQ_SIGNAL("newItems(const KFileItemList &)"),self.slotNewItems) + self.connect(self.dirlister,TQ_SIGNAL("completed()"),self.slotDirListCompleted) + self.connect(self.dirlister,TQ_SIGNAL("canceled()"),self.slotDirListCanceled) + self.connect(self.dirlister,TQ_SIGNAL("redirection(const KURL &,const KURL &)"),self.slotDirListRedirection) self.enableButtonOK(False) # The "Connect as" part @@ -87,18 +87,18 @@ class SMBShareSelectDialog(KDialogBase): tmplabel = TQLabel(widget) tmplabel.setText(i18n("Guest")) grid.addWidget(tmplabel,1,2) - self.connect(self.guestradio,SIGNAL("stateChanged(int)"),self.slotGuestRadioClicked) + self.connect(self.guestradio,TQ_SIGNAL("stateChanged(int)"),self.slotGuestRadioClicked) self.userradio = TQRadioButton(widget) grid.addWidget(self.userradio,2,1) tmplabel = TQLabel(widget) tmplabel.setText(i18n("Username:")) grid.addWidget(tmplabel,2,2) - self.connect(self.userradio,SIGNAL("stateChanged(int)"),self.slotUserRadioClicked) + self.connect(self.userradio,TQ_SIGNAL("stateChanged(int)"),self.slotUserRadioClicked) self.usernameedit = KLineEdit(widget) grid.addWidget(self.usernameedit,2,3) - self.connect(self.usernameedit,SIGNAL("textChanged(const TQString &)"),self.slotUsernameChanged) + self.connect(self.usernameedit,TQ_SIGNAL("textChanged(const TQString &)"),self.slotUsernameChanged) tmplabel = TQLabel(widget) tmplabel.setText(i18n("Password:")) @@ -109,7 +109,7 @@ class SMBShareSelectDialog(KDialogBase): self.reconnectbutton = KPushButton(i18n("Reconnect now"),widget) grid.addMultiCellWidget(self.reconnectbutton,4,4,1,3) - self.connect(self.reconnectbutton,SIGNAL("clicked()"),self.slotReconnectClicked) + self.connect(self.reconnectbutton,TQ_SIGNAL("clicked()"),self.slotReconnectClicked) self.dirlistertimer = None diff --git a/mountconfig/SimpleCommandRunner.py b/mountconfig/SimpleCommandRunner.py index 9936ba1..0b9d941 100644 --- a/mountconfig/SimpleCommandRunner.py +++ b/mountconfig/SimpleCommandRunner.py @@ -46,8 +46,8 @@ class SimpleCommandRunner(TQObject): proc = TDEProcess() proc.setEnvironment("LANG","US") proc.setEnvironment("LC_ALL","US") - self.connect(proc,SIGNAL("receivedStdout(TDEProcess *,char *,int)"),self.slotStdout) - self.connect(proc,SIGNAL("receivedStderr(TDEProcess *,char *,int)"),self.slotStderr) + self.connect(proc,TQ_SIGNAL("receivedStdout(TDEProcess *,char *,int)"),self.slotStdout) + self.connect(proc,TQ_SIGNAL("receivedStderr(TDEProcess *,char *,int)"),self.slotStderr) proc.setArguments(cmdlist) rc = None if proc.start(proc.Block,proc.AllOutput)==True: diff --git a/mountconfig/fuser.py b/mountconfig/fuser.py index a84be6d..87d0719 100644 --- a/mountconfig/fuser.py +++ b/mountconfig/fuser.py @@ -133,12 +133,12 @@ class FUser(FUserUI): application. """)) % (self.device,self.device,self.device)) - self.connect(self.cancelbutton,SIGNAL("clicked()"),self.slotCancelButtonClicked) - self.connect(self.killbutton,SIGNAL("clicked()"),self.slotKillButtonClicked) - self.connect(self.killallbutton,SIGNAL("clicked()"),self.slotKillallButtonClicked) - self.connect(self.refreshbutton,SIGNAL("clicked()"),self.refreshProcesslist) - self.connect(self.processlist,SIGNAL("selectionChanged()"),self.slotSelectionChanged) - self.connect(self.umountbutton,SIGNAL("clicked()"),self.slotUmountButtonClicked) + self.connect(self.cancelbutton,TQ_SIGNAL("clicked()"),self.slotCancelButtonClicked) + self.connect(self.killbutton,TQ_SIGNAL("clicked()"),self.slotKillButtonClicked) + self.connect(self.killallbutton,TQ_SIGNAL("clicked()"),self.slotKillallButtonClicked) + self.connect(self.refreshbutton,TQ_SIGNAL("clicked()"),self.refreshProcesslist) + self.connect(self.processlist,TQ_SIGNAL("selectionChanged()"),self.slotSelectionChanged) + self.connect(self.umountbutton,TQ_SIGNAL("clicked()"),self.slotUmountButtonClicked) # TODO: Make optionsbutton resize dialog if processframe is hidden, hide Optionsbutton until then. self.optionsbutton.hide() diff --git a/mountconfig/mountconfig.py b/mountconfig/mountconfig.py index f377362..260f215 100755 --- a/mountconfig/mountconfig.py +++ b/mountconfig/mountconfig.py @@ -1386,10 +1386,10 @@ class MountEntryDialogOptions(TQWidget): hbox.setSpacing(KDialog.spacingHint()) self.mountpointlineedit = KLineEdit(hbox) hbox.setStretchFactor(self.mountpointlineedit,1) - #self.connect(self.homediredit, SIGNAL("textChanged(const TQString &)"), self.slotHomeDirChanged) + #self.connect(self.homediredit, TQ_SIGNAL("textChanged(const TQString &)"), self.slotHomeDirChanged) self.mountpointbutton = KPushButton(i18n("Browse..."),hbox) hbox.setStretchFactor(self.mountpointbutton,0) - self.connect(self.mountpointbutton,SIGNAL("clicked()"),self.slotBrowseMountPointClicked) + self.connect(self.mountpointbutton,TQ_SIGNAL("clicked()"),self.slotBrowseMountPointClicked) grid.addMultiCellWidget(hbox,row,row,1,3) row += 1 @@ -1401,7 +1401,7 @@ class MountEntryDialogOptions(TQWidget): grid.addWidget(label,row,0) self.devicecheckbox = TQRadioButton(i18n("by name"),hbox) - self.connect(self.devicecheckbox,SIGNAL("clicked()"), \ + self.connect(self.devicecheckbox,TQ_SIGNAL("clicked()"), \ self.slotDeviceCheckboxClicked) self.devicelineedit = KLineEdit(hbox) grid.addMultiCellWidget(hbox,row,row,1,3) @@ -1414,7 +1414,7 @@ class MountEntryDialogOptions(TQWidget): hbox = TQHBox(self) hbox.setSpacing(KDialog.spacingHint()) self.uuidcheckbox = TQRadioButton(i18n("by UUID"),hbox) - self.connect(self.uuidcheckbox,SIGNAL("clicked()"), \ + self.connect(self.uuidcheckbox,TQ_SIGNAL("clicked()"), \ self.slotUUIDCheckboxClicked) self.uuidlineedit = KLineEdit(hbox) grid.addMultiCellWidget(hbox,row,row,1,3) @@ -1424,7 +1424,7 @@ class MountEntryDialogOptions(TQWidget): hbox = TQHBox(self) hbox.setSpacing(KDialog.spacingHint()) self.labelcheckbox = TQRadioButton(i18n("by label"),hbox) - self.connect(self.labelcheckbox,SIGNAL("clicked()"), \ + self.connect(self.labelcheckbox,TQ_SIGNAL("clicked()"), \ self.slotLabelCheckboxClicked) self.labellineedit = KLineEdit(hbox) grid.addMultiCellWidget(hbox,row,row,1,3) @@ -1637,10 +1637,10 @@ class MountEntryDialogOptionsCommonUnix(MountEntryDialogOptions): hbox.setSpacing(KDialog.spacingHint()) self.mountpointlineedit = KLineEdit(hbox) hbox.setStretchFactor(self.mountpointlineedit,1) - #self.connect(self.homediredit, SIGNAL("textChanged(const TQString &)"), self.slotHomeDirChanged) + #self.connect(self.homediredit, TQ_SIGNAL("textChanged(const TQString &)"), self.slotHomeDirChanged) self.mountpointbutton = KPushButton(i18n("Browse..."),hbox) hbox.setStretchFactor(self.mountpointbutton,0) - self.connect(self.mountpointbutton,SIGNAL("clicked()"), \ + self.connect(self.mountpointbutton,TQ_SIGNAL("clicked()"), \ self.slotBrowseMountPointClicked) grid.addWidget(hbox,row,1) row += 1 @@ -1654,7 +1654,7 @@ class MountEntryDialogOptionsCommonUnix(MountEntryDialogOptions): grid.addWidget(label,row,0) self.devicecheckbox = TQRadioButton(i18n("by name"),hbox) - self.connect(self.devicecheckbox,SIGNAL("clicked()"), \ + self.connect(self.devicecheckbox,TQ_SIGNAL("clicked()"), \ self.slotDeviceCheckboxClicked) self.devicelineedit = KLineEdit(hbox) grid.addWidget(hbox,row,1) @@ -1667,7 +1667,7 @@ class MountEntryDialogOptionsCommonUnix(MountEntryDialogOptions): hbox = TQHBox(self) hbox.setSpacing(KDialog.spacingHint()) self.uuidcheckbox = TQRadioButton(i18n("by UUID"),hbox) - self.connect(self.uuidcheckbox,SIGNAL("clicked()"), \ + self.connect(self.uuidcheckbox,TQ_SIGNAL("clicked()"), \ self.slotUUIDCheckboxClicked) self.uuidlineedit = KLineEdit(hbox) grid.addWidget(hbox,row,1) @@ -1677,7 +1677,7 @@ class MountEntryDialogOptionsCommonUnix(MountEntryDialogOptions): hbox = TQHBox(self) hbox.setSpacing(KDialog.spacingHint()) self.labelcheckbox = TQRadioButton(i18n("by label"),hbox) - self.connect(self.labelcheckbox,SIGNAL("clicked()"), \ + self.connect(self.labelcheckbox,TQ_SIGNAL("clicked()"), \ self.slotLabelCheckboxClicked) self.labellineedit = KLineEdit(hbox) grid.addWidget(hbox,row,1) @@ -1714,7 +1714,7 @@ class MountEntryDialogOptionsCommonUnix(MountEntryDialogOptions): #grid.addWidget(,9,0) button = KPushButton(i18n("Advanced..."),self) button.setSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed) - self.connect(button,SIGNAL("clicked()"),self.slotAdvancedClicked) + self.connect(button,TQ_SIGNAL("clicked()"),self.slotAdvancedClicked) grid.addWidget(button,row,1,TQt.AlignRight) row += 1 @@ -1891,10 +1891,10 @@ class MountEntryDialogOptionsVFAT(MountEntryDialogOptions): hbox.setSpacing(KDialog.spacingHint()) self.mountpointlineedit = KLineEdit(hbox) hbox.setStretchFactor(self.mountpointlineedit,1) - #self.connect(self.homediredit, SIGNAL("textChanged(const TQString &)"), self.slotHomeDirChanged) + #self.connect(self.homediredit, TQ_SIGNAL("textChanged(const TQString &)"), self.slotHomeDirChanged) self.mountpointbutton = KPushButton(i18n("Browse..."),hbox) hbox.setStretchFactor(self.mountpointbutton,0) - self.connect(self.mountpointbutton,SIGNAL("clicked()"),self.slotBrowseMountPointClicked) + self.connect(self.mountpointbutton,TQ_SIGNAL("clicked()"),self.slotBrowseMountPointClicked) grid.addMultiCellWidget(hbox,row,row,1,3) row += 1 @@ -1906,7 +1906,7 @@ class MountEntryDialogOptionsVFAT(MountEntryDialogOptions): grid.addWidget(label,row,0) self.devicecheckbox = TQRadioButton(i18n("by name"),hbox) - self.connect(self.devicecheckbox,SIGNAL("clicked()"), \ + self.connect(self.devicecheckbox,TQ_SIGNAL("clicked()"), \ self.slotDeviceCheckboxClicked) self.devicelineedit = KLineEdit(hbox) grid.addWidget(hbox,row,1) @@ -1919,7 +1919,7 @@ class MountEntryDialogOptionsVFAT(MountEntryDialogOptions): hbox = TQHBox(self) hbox.setSpacing(KDialog.spacingHint()) self.uuidcheckbox = TQRadioButton(i18n("by UUID"),hbox) - self.connect(self.uuidcheckbox,SIGNAL("clicked()"), \ + self.connect(self.uuidcheckbox,TQ_SIGNAL("clicked()"), \ self.slotUUIDCheckboxClicked) self.uuidlineedit = KLineEdit(hbox) grid.addWidget(hbox,row,1) @@ -1929,7 +1929,7 @@ class MountEntryDialogOptionsVFAT(MountEntryDialogOptions): hbox = TQHBox(self) hbox.setSpacing(KDialog.spacingHint()) self.labelcheckbox = TQRadioButton(i18n("by label"),hbox) - self.connect(self.labelcheckbox,SIGNAL("clicked()"), \ + self.connect(self.labelcheckbox,TQ_SIGNAL("clicked()"), \ self.slotLabelCheckboxClicked) self.labellineedit = KLineEdit(hbox) grid.addWidget(hbox,row,1) @@ -1998,7 +1998,7 @@ class MountEntryDialogOptionsVFAT(MountEntryDialogOptions): row += 1 button = KPushButton(i18n("Advanced..."),self) button.setSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed) - self.connect(button,SIGNAL("clicked()"),self.slotAdvancedClicked) + self.connect(button,TQ_SIGNAL("clicked()"),self.slotAdvancedClicked) grid.addMultiCellWidget(button,row,row,1,3,TQt.AlignRight) ######################################################################## @@ -2146,10 +2146,10 @@ class MountEntryDialogOptionsSMB(MountEntryDialogOptions): hbox.setSpacing(KDialog.spacingHint()) self.mountpointlineedit = KLineEdit(hbox) hbox.setStretchFactor(self.mountpointlineedit,1) - #self.connect(self.homediredit, SIGNAL("textChanged(const TQString &)"), self.slotHomeDirChanged) + #self.connect(self.homediredit, TQ_SIGNAL("textChanged(const TQString &)"), self.slotHomeDirChanged) self.mountpointbutton = KPushButton(i18n("Browse..."),hbox) hbox.setStretchFactor(self.mountpointbutton,0) - self.connect(self.mountpointbutton,SIGNAL("clicked()"),self.slotBrowseMountPointClicked) + self.connect(self.mountpointbutton,TQ_SIGNAL("clicked()"),self.slotBrowseMountPointClicked) grid.addMultiCellWidget(hbox,0,0,1,3) label = TQLabel(i18n("Network Share:"),self) @@ -2160,7 +2160,7 @@ class MountEntryDialogOptionsSMB(MountEntryDialogOptions): hbox.setStretchFactor(self.devicelineedit,1) self.devicelinebutton = KPushButton(i18n("Scan..."),hbox) hbox.setStretchFactor(self.devicelinebutton,0) - self.connect(self.devicelinebutton,SIGNAL("clicked()"),self.slotBrowseDeviceLineClicked) + self.connect(self.devicelinebutton,TQ_SIGNAL("clicked()"),self.slotBrowseDeviceLineClicked) grid.addMultiCellWidget(hbox,1,1,1,3) # Connect as: @@ -2174,14 +2174,14 @@ class MountEntryDialogOptionsSMB(MountEntryDialogOptions): tmplabel = TQLabel(self) tmplabel.setText(i18n("Guest")) grid.addMultiCellWidget(tmplabel,2,2,2,3) - self.connect(self.guestradio,SIGNAL("stateChanged(int)"),self.slotGuestRadioClicked) + self.connect(self.guestradio,TQ_SIGNAL("stateChanged(int)"),self.slotGuestRadioClicked) self.userradio = TQRadioButton(self) grid.addWidget(self.userradio,3,1) tmplabel = TQLabel(self) tmplabel.setText(i18n("Username:")) grid.addWidget(tmplabel,3,2) - self.connect(self.userradio,SIGNAL("stateChanged(int)"),self.slotUserRadioClicked) + self.connect(self.userradio,TQ_SIGNAL("stateChanged(int)"),self.slotUserRadioClicked) self.usernameedit = KLineEdit(self) grid.addWidget(self.usernameedit,3,3) @@ -2233,7 +2233,7 @@ class MountEntryDialogOptionsSMB(MountEntryDialogOptions): button = KPushButton(i18n("Advanced..."),self) button.setSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed) - self.connect(button,SIGNAL("clicked()"),self.slotAdvancedClicked) + self.connect(button,TQ_SIGNAL("clicked()"),self.slotAdvancedClicked) grid.addMultiCellWidget(button,13,13,1,3,TQt.AlignRight) self.selectsmbdialog = None @@ -2483,7 +2483,7 @@ class MountEntryDialog(KDialogBase): self.MountTypeEditors.update(self.MountTypeEditorsSystem) #hb.setStretchFactor(self.runlevelcombo,0) - self.connect(self.mounttypecombo, SIGNAL("activated(int)"), self.slotMountTypeChanged) + self.connect(self.mounttypecombo, TQ_SIGNAL("activated(int)"), self.slotMountTypeChanged) widget = TQWidget(hb) hb.setStretchFactor(widget,1) @@ -2909,11 +2909,11 @@ class MountConfigApp(programbase): self.mountlist.setSelectionMode(TQListView.Single) self.mountlist.setRootIsDecorated(True) self.mountlist.setSorting(-1) - self.connect(self.mountlist, SIGNAL("selectionChanged(TQListViewItem *)"), self.slotListClicked) + self.connect(self.mountlist, TQ_SIGNAL("selectionChanged(TQListViewItem *)"), self.slotListClicked) # Doubleclick in item opens modify dialogue. - self.connect(self.mountlist, SIGNAL("doubleClicked(TQListViewItem *)"), self.slotModifyClicked) + self.connect(self.mountlist, TQ_SIGNAL("doubleClicked(TQListViewItem *)"), self.slotModifyClicked) # Rightclick: Open ContextMenu - self.connect(self.mountlist, SIGNAL("contextMenu(TDEListView*,TQListViewItem*,const TQPoint&)"), + self.connect(self.mountlist, TQ_SIGNAL("contextMenu(TDEListView*,TQListViewItem*,const TQPoint&)"), self.slotContextMenu) hbox = TQHBox(topwidget) @@ -2923,28 +2923,28 @@ class MountConfigApp(programbase): toplayout.setStretchFactor(hbox,0) self.newbutton = KPushButton(i18n("New..."),hbox) hbox.setStretchFactor(self.newbutton,1) - self.connect(self.newbutton,SIGNAL("clicked()"),self.slotNewClicked) + self.connect(self.newbutton,TQ_SIGNAL("clicked()"),self.slotNewClicked) self.newbutton.setEnabled(isroot) self.modifybutton = KPushButton(i18n("Modify..."),hbox) hbox.setStretchFactor(self.modifybutton,1) - self.connect(self.modifybutton,SIGNAL("clicked()"),self.slotModifyClicked) + self.connect(self.modifybutton,TQ_SIGNAL("clicked()"),self.slotModifyClicked) self.deletebutton = KPushButton(i18n("Delete..."),hbox) hbox.setStretchFactor(self.deletebutton,1) - self.connect(self.deletebutton,SIGNAL("clicked()"),self.slotDeleteClicked) + self.connect(self.deletebutton,TQ_SIGNAL("clicked()"),self.slotDeleteClicked) self.enablebutton = KPushButton(i18n("Enable"),hbox) hbox.setStretchFactor(self.enablebutton,1) - self.connect(self.enablebutton,SIGNAL("clicked()"),self.slotEnableClicked) + self.connect(self.enablebutton,TQ_SIGNAL("clicked()"),self.slotEnableClicked) self.disablebutton = KPushButton(i18n("Disable"),hbox) hbox.setStretchFactor(self.disablebutton,1) - self.connect(self.disablebutton,SIGNAL("clicked()"),self.slotDisableClicked) + self.connect(self.disablebutton,TQ_SIGNAL("clicked()"),self.slotDisableClicked) self.detailsbutton = KPushButton(i18n("Details..."),hbox) hbox.setStretchFactor(self.detailsbutton,1) - self.connect(self.detailsbutton,SIGNAL("clicked()"),self.slotDetailsClicked) + self.connect(self.detailsbutton,TQ_SIGNAL("clicked()"),self.slotDetailsClicked) self.devstolistitems = None self.uuidstolistitems = None diff --git a/mountconfig/sizeview.py b/mountconfig/sizeview.py index 33b1560..fc94c46 100644 --- a/mountconfig/sizeview.py +++ b/mountconfig/sizeview.py @@ -119,7 +119,7 @@ class SizeView(TQDialog): self.grid.setRowStretch(row,5) self.clearWState(TQt.WState_Polished) - self.connect(self.buttonCancel,SIGNAL("clicked()"),self.hide) + self.connect(self.buttonCancel,TQ_SIGNAL("clicked()"),self.hide) #self.mainlabel = TQLabel("<font size=+2><b>"+self.dialogtitle+"</b></font>",self) #self.grid.addWidget(self.mainlabel,0,0) |
