summaryrefslogtreecommitdiffstats
path: root/mountconfig/SMBShareSelectDialog.py
diff options
context:
space:
mode:
authorFrancois Andriot <[email protected]>2014-09-23 18:28:49 -0500
committerTimothy Pearson <[email protected]>2014-09-23 18:28:49 -0500
commit138f1893d0aa1fa54f9fd55674a5fc8e24aa07b5 (patch)
treeddedd4611a10dbf3475cdaf6a1ae21b24b3dfff1 /mountconfig/SMBShareSelectDialog.py
parent499a99b5822f3e219b9817b4bed1e7737e1c31db (diff)
downloadtde-guidance-138f1893d0aa1fa54f9fd55674a5fc8e24aa07b5.tar.gz
tde-guidance-138f1893d0aa1fa54f9fd55674a5fc8e24aa07b5.zip
Convert mountconfig module to TQt3
This relates to Bug 2261
Diffstat (limited to 'mountconfig/SMBShareSelectDialog.py')
-rw-r--r--mountconfig/SMBShareSelectDialog.py44
1 files changed, 22 insertions, 22 deletions
diff --git a/mountconfig/SMBShareSelectDialog.py b/mountconfig/SMBShareSelectDialog.py
index d40ab66..fbc06f0 100644
--- a/mountconfig/SMBShareSelectDialog.py
+++ b/mountconfig/SMBShareSelectDialog.py
@@ -36,18 +36,18 @@ class SMBShareSelectDialog(KDialogBase):
vbox = self.makeVBoxMainWidget()
- hbox = QHBox(vbox)
+ hbox = TTQHBox(vbox)
hbox.setSpacing(self.spacingHint())
- tmplabel = QLabel(hbox)
+ tmplabel = TQLabel(hbox)
tmplabel.setPixmap(UserIcon("hi32-samba"))
hbox.setStretchFactor(tmplabel,0)
- self.headinglabel = QLabel(hbox)
+ self.headinglabel = TQLabel(hbox)
self.headinglabel.setText(i18n("Select a network share"))
hbox.setStretchFactor(self.headinglabel,1)
- hbox2 = QHBox(vbox)
+ hbox2 = TQHBox(vbox)
# The main treeview where the action happens.
self.treeview = TDEListView(hbox2)
@@ -55,9 +55,9 @@ class SMBShareSelectDialog(KDialogBase):
self.treeview.header().hide()
self.treeview.setRootIsDecorated(True)
- self.connect(self.treeview,SIGNAL("expanded(QListViewItem *)"),self.slotNodeExpanded)
- self.connect(self.treeview,SIGNAL("selectionChanged(QListViewItem *)"),self.slotNodeSelected)
- self.connect(self.treeview,SIGNAL("clicked(QListViewItem *)"),self.slotClicked)
+ 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.dirlister = KDirLister()
self.dirlister.setDirOnlyMode(True)
self.dirlister.setAutoUpdate(False)
@@ -69,38 +69,38 @@ class SMBShareSelectDialog(KDialogBase):
self.enableButtonOK(False)
# The "Connect as" part
- widget = QWidget(hbox2)
- grid = QGridLayout(widget,6,4,KDialog.spacingHint())
+ widget = TQWidget(hbox2)
+ grid = TQGridLayout(widget,6,4,KDialog.spacingHint())
grid.setRowStretch(5,1)
- tmplabel = QLabel(widget)
+ tmplabel = TQLabel(widget)
tmplabel.setPixmap(UserIcon("hi16-password"))
grid.addWidget(tmplabel,0,0)
- self.connectaslabel = QLabel(widget)
+ self.connectaslabel = TQLabel(widget)
self.connectaslabel.setText("Connect to 'XXX' as:")
grid.addMultiCellWidget(self.connectaslabel,0,0,1,3)
- self.guestradio = QRadioButton(widget)
+ self.guestradio = TQRadioButton(widget)
self.guestradio.setChecked(True)
grid.addWidget(self.guestradio,1,1)
- tmplabel = QLabel(widget)
+ tmplabel = TQLabel(widget)
tmplabel.setText(i18n("Guest"))
grid.addWidget(tmplabel,1,2)
self.connect(self.guestradio,SIGNAL("stateChanged(int)"),self.slotGuestRadioClicked)
- self.userradio = QRadioButton(widget)
+ self.userradio = TQRadioButton(widget)
grid.addWidget(self.userradio,2,1)
- tmplabel = QLabel(widget)
+ tmplabel = TQLabel(widget)
tmplabel.setText(i18n("Username:"))
grid.addWidget(tmplabel,2,2)
self.connect(self.userradio,SIGNAL("stateChanged(int)"),self.slotUserRadioClicked)
self.usernameedit = KLineEdit(widget)
grid.addWidget(self.usernameedit,2,3)
- self.connect(self.usernameedit,SIGNAL("textChanged(const QString &)"),self.slotUsernameChanged)
+ self.connect(self.usernameedit,SIGNAL("textChanged(const TQString &)"),self.slotUsernameChanged)
- tmplabel = QLabel(widget)
+ tmplabel = TQLabel(widget)
tmplabel.setText(i18n("Password:"))
grid.addWidget(tmplabel,3,2)
@@ -206,7 +206,7 @@ class SMBShareSelectDialog(KDialogBase):
for entry in items:
newitem = SMBShareListViewItem(self.lookupqueue[0], unicode(entry.name()), KURL(entry.url()), self)
self.url_to_list_item_map[unicode(entry.url().prettyURL())] = newitem
- # Notice how I copied the KURL object and QString (to a python string)
+ # Notice how I copied the KURL object and TQString (to a python string)
########################################################################
def slotDirListCompleted(self):
@@ -263,10 +263,10 @@ class SMBShareSelectDialog(KDialogBase):
# Set the username/password for the machine item.
if self.guestradio.isChecked():
- machineitem.getURL().setUser(QString.null)
- machineitem.getURL().setPass(QString.null)
- selectedurl.setUser(QString.null)
- selectedurl.setPass(QString.null)
+ machineitem.getURL().setUser(TQString.null)
+ machineitem.getURL().setPass(TQString.null)
+ selectedurl.setUser(TQString.null)
+ selectedurl.setPass(TQString.null)
else:
machineitem.getURL().setUser(self.usernameedit.text())
machineitem.getURL().setPass(self.passwordedit.text())