Commits

Virgil Dupras committed 4a4bf92

Removed the "register os" option in the regkey submit dialog.

It's not used anymore.

Comments (0)

Files changed (1)

reg_submit_dialog.py

 
 from PyQt4.QtCore import Qt, QCoreApplication
 from PyQt4.QtGui import (QDialog, QApplication, QVBoxLayout, QHBoxLayout, QLabel, QFormLayout,
-    QLayout, QLineEdit, QPushButton, QSpacerItem, QSizePolicy, QCheckBox)
+    QLayout, QLineEdit, QPushButton, QSpacerItem, QSizePolicy)
 
-from hscommon.plat import ISLINUX
 from hscommon.trans import trget
 
 tr = trget('qtlib')
     
     def _setupUi(self):
         self.setWindowTitle(tr("Enter your registration key"))
-        # Workaround for bug at http://bugreports.qt.nokia.com/browse/QTBUG-8212
-        if ISLINUX:
-            self.resize(450, 210)
-        else:
-            self.resize(365, 146)
+        self.resize(365, 126)
         self.verticalLayout = QVBoxLayout(self)
         self.promptLabel = QLabel(self)
         appname = str(QCoreApplication.instance().applicationName())
         self.emailEdit = QLineEdit(self)
         self.formLayout.setWidget(1, QFormLayout.FieldRole, self.emailEdit)
         self.verticalLayout.addLayout(self.formLayout)
-        self.registerOSCheckBox = QCheckBox(self)
-        self.registerOSCheckBox.setText(tr("Tell Hardcoded Software which operating system I'm using."))
-        self.registerOSCheckBox.setChecked(True)
-        self.verticalLayout.addWidget(self.registerOSCheckBox)
-        self.label4 = QLabel(self)
-        self.label4.setText(tr("(to have some contribution statistics based on OSes)"))
-        self.verticalLayout.addWidget(self.label4)
         self.horizontalLayout = QHBoxLayout()
         self.contributeButton = QPushButton(self)
         self.contributeButton.setText(tr("Contribute"))
     def submitClicked(self):
         code = self.codeEdit.text()
         email = self.emailEdit.text()
-        if self.reg.app.set_registration(code, email, self.registerOSCheckBox.isChecked()):
+        if self.reg.app.set_registration(code, email, False):
             self.accept()
     
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.