diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-09-23 19:40:50 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-09-23 19:40:50 -0500 |
commit | d28ae74d212baba2c12bbb61c43a4bf348cd0153 (patch) | |
tree | 455d1bb252fc2dc6742f9a2d3afc94fbb1ffb122 /powermanager | |
parent | 138f1893d0aa1fa54f9fd55674a5fc8e24aa07b5 (diff) | |
download | tde-guidance-d28ae74d212baba2c12bbb61c43a4bf348cd0153.tar.gz tde-guidance-d28ae74d212baba2c12bbb61c43a4bf348cd0153.zip |
Convert remaining modules to TQt3
This relates to Bug 1995
Diffstat (limited to 'powermanager')
-rwxr-xr-x | powermanager/guidance-power-manager.py | 99 | ||||
-rw-r--r-- | powermanager/guidance_power_manager_ui.ui | 68 | ||||
-rw-r--r-- | powermanager/notify.ui | 10 | ||||
-rw-r--r-- | powermanager/tooltip.ui | 4 |
4 files changed, 97 insertions, 84 deletions
diff --git a/powermanager/guidance-power-manager.py b/powermanager/guidance-power-manager.py index cef7e52..aeccf2f 100755 --- a/powermanager/guidance-power-manager.py +++ b/powermanager/guidance-power-manager.py @@ -22,8 +22,8 @@ Specification at https://wiki.kubuntu.org/KubuntuPowerManagement Issues: - We have to keep polling HAL rather than listening for signals because the Python DBUS bindings - don't have Qt mainloop integration - - Written in Python so will be slow to load up, will probably port to C++ Qt 4.2 in future + don't have TQt mainloop integration + - Written in Python so will be slow to load up, will probably port to C++ TQt 4.2 in future - Should also handle UPS and bluetooth batteries - systray applet should be hidden if no battery, but then how do you suspend if no battery? (ksmserver integration please) @@ -32,8 +32,21 @@ Issues: - dcop calls need patch to dcopexport.py, already submitted upstream """ -import os import sys +import os +import os.path +# Trinity-specific paths +tqt_modules = [] +for m_path in sys.path: + if os.path.exists(os.path.join(m_path, 'sip4_tqt')): + m_sip_dir = os.path.join(m_path, 'sip4_tqt') + tqt_modules.insert(0, m_sip_dir) + if os.path.exists(os.path.join(m_path, 'python_tqt')): + m_pyqt_dir = os.path.join(m_path, 'python_tqt') + tqt_modules.insert(0, m_pyqt_dir) +for m_path in tqt_modules: + sys.path.insert(0, m_path) + import subprocess import dbus @@ -69,7 +82,7 @@ class Notify(NotifyWidget): def setCaption(self,caption): """ Text to show in bold letters. """ - self.Caption.setText(QString("<b>")+caption+QString("</b>")) + self.Caption.setText(TQString("<b>")+caption+QString("</b>")) def setText(self,msg): """" Set actual notification message. """ @@ -87,7 +100,7 @@ class PowerManager(PowerManagerUI): # therefore, it gets our parent as parent. self.systray = KSystemTray(parent) self.icon = "battery-charging-100" - self.systray.setPixmap(QPixmap(UserIcon(self.icon))) + self.systray.setPixmap(TQPixmap(UserIcon(self.icon))) self.connect(self.systray, SIGNAL("quitSelected()"), self.quit) # Configuration filename @@ -110,7 +123,7 @@ class PowerManager(PowerManagerUI): # Polling: evil. can't receive signals in python-dbus unless we have a glib mainloop, # so we need to poll - self.pollTimer = QTimer(self) + self.pollTimer = TQTimer(self) self.connect(self.pollTimer, SIGNAL("timeout()"), self.poll) self.pollTimer.start(POLL_INTERVAL) # 5 second poll, maybe make this configurable self.poll(False) @@ -136,20 +149,20 @@ class PowerManager(PowerManagerUI): self.LaptopLidRadios.setEnabled(False) def _initCB(self, combo, options, values): - """ Initialize QComboBox with proper values from provided options. """ + """ Initialize TQComboBox with proper values from provided options. """ combo.clear() for option in options: combo.insertItem(values[option]) def _getCB(self, combo, options): - """ Get current item from QComboBox from config file (string) value. """ + """ Get current item from TQComboBox from config file (string) value. """ try: return options[combo.currentItem()] except IndexError: return "" def _setCB(self, combo, options, default, value): - """ Set current item in QComboBox from string value. """ + """ Set current item in TQComboBox from string value. """ try: num = options.index(value) except ValueError: @@ -158,14 +171,14 @@ class PowerManager(PowerManagerUI): combo.setCurrentItem(num) def _getRB(self, radios, options): - """ Get current item from QRadioButton from config file (string) value. """ + """ Get current item from TQRadioButton from config file (string) value. """ try: return options[radios.selectedId()] except IndexError: return "" def _setRB(self, radios, options, default, value): - """ Set current item in QRadioButton from string value. """ + """ Set current item in TQRadioButton from string value. """ try: num = options.index(value) except ValueError: @@ -250,9 +263,9 @@ class PowerManager(PowerManagerUI): self.connect(self.BatteryBrightnessSlider, SIGNAL("valueChanged(int)"), self.changeBatteryBrightness) #Add a blank tooltip, the tooltipgroup signals are then used for our KPassivePopup - toolTipGroup = QToolTipGroup(self.systray) - QToolTip.add(self.systray, "", toolTipGroup, "blah") - self.connect(toolTipGroup, SIGNAL("showTip(const QString&)"), self.showTip) + toolTipGroup = TQToolTipGroup(self.systray) + TQToolTip.add(self.systray, "", toolTipGroup, "blah") + self.connect(toolTipGroup, SIGNAL("showTip(const TQString&)"), self.showTip) self.connect(toolTipGroup, SIGNAL("removeTip()"), self.hideTip) # Popup tooltip showing battery level @@ -353,7 +366,7 @@ class PowerManager(PowerManagerUI): # And change the icon in the systray, remove the restore option # This way, we're basically becoming a systray applet, you can # hibernate and suspend from - self.systray.setPixmap(QPixmap(UserIcon(self.icon))) + self.systray.setPixmap(TQPixmap(UserIcon(self.icon))) if self.powermanager.hasAC: self.wasOnBattery = self.powermanager.onBattery() @@ -368,8 +381,8 @@ class PowerManager(PowerManagerUI): self.PoweredBrightnessSlider.setValue(self.config.readNumEntry("poweredBrightness", brightness_high)) #default highest tt_text = "Every step increases or decreases the brightness by %i%%" % int(100/brightness_high) - QToolTip.add(self.BatteryBrightnessSlider, tt_text) - QToolTip.add(self.PoweredBrightnessSlider, tt_text) + TQToolTip.add(self.BatteryBrightnessSlider, tt_text) + TQToolTip.add(self.PoweredBrightnessSlider, tt_text) self.lockScreenOnResume.setChecked(self.config.readBoolEntry("lockOnResume", True)) @@ -418,7 +431,7 @@ class PowerManager(PowerManagerUI): self.config.sync() def quit(self): - """ Quit application. """ + """ TQuit application. """ kapp.quit() def showTip(self, text=""): @@ -457,7 +470,7 @@ class PowerManager(PowerManagerUI): value=self.BatteryBrightnessSlider.value()*100/self.BatteryBrightnessSlider.maxValue() else: value=self.PoweredBrightnessSlider.value()*100/self.PoweredBrightnessSlider.maxValue() - return QString(str(value)) + return TQString(str(value)) def hideTip(self): """ Hide the tooltip.""" @@ -599,15 +612,15 @@ class PowerManager(PowerManagerUI): oldIcon = self.icon self.icon = self._getIcon() if self.icon != oldIcon: - self.systray.setPixmap(QPixmap(UserIcon(self.icon))) - self.BattPixmap.setPixmap(QPixmap(UserIcon(self.icon))) + self.systray.setPixmap(TQPixmap(UserIcon(self.icon))) + self.BattPixmap.setPixmap(TQPixmap(UserIcon(self.icon))) def notify(self, msg, icon=None): """ Send a notification popup. """ if icon: - icon = QPixmap(icon) + icon = TQPixmap(icon) else: - icon = QPixmap(SmallIcon("messagebox_info")) + icon = TQPixmap(SmallIcon("messagebox_info")) try: del self.warningPopup except: @@ -615,7 +628,7 @@ class PowerManager(PowerManagerUI): self.warningPopup = KPassivePopup(self.systray) label = Notify(self.warningPopup, msg, icon) self.warningPopup.setView(label) - position = QPoint(5,5) + position = TQPoint(5,5) self.warningPopup.show(position) def poll(self,notify=True): @@ -728,20 +741,20 @@ class PowerManager(PowerManagerUI): if self.act_call[action] != None: note = i18n("Laptop lid is closed, %1 now.").arg(self.act_notify[action]) self.notify(note, self.act_icon[action]) - QTimer.singleShot(2000, self.act_call[action]) + TQTimer.singleShot(2000, self.act_call[action]) else: self.powermanager.lidClosedState = False def _addBatteryWidgets(self): """ Adds progressbars to show battery status to the tooltip.""" - BattLayout = QHBoxLayout(None,0,6,"BattLayout") + BattLayout = TQHBoxLayout(None,0,6,"BattLayout") - self.BattPixmap = QLabel(self.tooltip,"BattLabLayout") - self.BattPixmap.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.BattPixmap.sizePolicy().hasHeightForWidth())) - self.BattPixmap.setPixmap(QPixmap(UserIcon(self.icon))) + self.BattPixmap = TQLabel(self.tooltip,"BattLabLayout") + self.BattPixmap.setSizePolicy(TQSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed,0,0,self.BattPixmap.sizePolicy().hasHeightForWidth())) + self.BattPixmap.setPixmap(TQPixmap(UserIcon(self.icon))) self.BattPixmap.setScaledContents(1) BattLayout.addWidget(self.BattPixmap) - self.BattMainLabel = QLabel(self.tooltip,"BattMainLabel") + self.BattMainLabel = TQLabel(self.tooltip,"BattMainLabel") self.BattMainLabel.setText(i18n("<b>Battery:</b>")) BattLayout.addWidget(self.BattMainLabel) @@ -754,13 +767,13 @@ class PowerManager(PowerManagerUI): self.BattProgress = {} i = 1 for batt in self.powermanager.batteries: - self.BattLayout[batt] = QHBoxLayout(None,0,6,"BattBarLayout") - self.BattLabel[batt] = QLabel(self.tooltip,"BattLabel") + self.BattLayout[batt] = TQHBoxLayout(None,0,6,"BattBarLayout") + self.BattLabel[batt] = TQLabel(self.tooltip,"BattLabel") if len(self.powermanager.batteries) > 1: self.BattLabel[batt].setText(i18n("Battery %i" % i)) self.BattLayout[batt].addWidget(self.BattLabel[batt]) self.BattProgress[batt] = KProgress(self.tooltip,"BattProgress") - self.BattProgress[batt].setMinimumSize(QSize(200,0)) + self.BattProgress[batt].setMinimumSize(TQSize(200,0)) self.BattLayout[batt].addWidget(self.BattProgress[batt]) self.tooltip.layout().addLayout(self.BattLayout[batt]) i += 1 @@ -791,14 +804,14 @@ class PowerManager(PowerManagerUI): if len(self.powermanager.cpus) == 0: return - LabelLayout = QHBoxLayout(None,0,6,"layout5") + LabelLayout = TQHBoxLayout(None,0,6,"layout5") - self.CpuPixmap = QLabel(self.tooltip,"CpuPixmap") - self.CpuPixmap.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.CpuPixmap.sizePolicy().hasHeightForWidth())) - self.CpuPixmap.setPixmap(QPixmap(UserIcon("processor"))) + self.CpuPixmap = TQLabel(self.tooltip,"CpuPixmap") + self.CpuPixmap.setSizePolicy(TQSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed,0,0,self.CpuPixmap.sizePolicy().hasHeightForWidth())) + self.CpuPixmap.setPixmap(TQPixmap(UserIcon("processor"))) self.CpuPixmap.setScaledContents(1) LabelLayout.addWidget(self.CpuPixmap) - self.CpuMainLabel = QLabel(self.tooltip,"CpuMainLabel") + self.CpuMainLabel = TQLabel(self.tooltip,"CpuMainLabel") self.CpuMainLabel.setText(i18n("<b>CPU Frequency:</b>")) LabelLayout.addWidget(self.CpuMainLabel) @@ -811,8 +824,8 @@ class PowerManager(PowerManagerUI): self.CpuProgress = {} i = 1 for cpu in self.powermanager.cpus: - self.CpuLayout[cpu] = QHBoxLayout(None,0,6,"layout2") - self.CpuLabel[cpu] = QLabel(self.tooltip,"CpuLabel") + self.CpuLayout[cpu] = TQHBoxLayout(None,0,6,"layout2") + self.CpuLabel[cpu] = TQLabel(self.tooltip,"CpuLabel") if len(self.powermanager.cpus) > 1: self.CpuLabel[cpu].setText(i18n("Processor %i" % i)) self.CpuLayout[cpu].addWidget(self.CpuLabel[cpu]) @@ -967,7 +980,7 @@ class PowerManager(PowerManagerUI): note = i18n("You are about to run out of battery power, %1 now.").arg(self.act_notify[action]) self.notify(note, self.act_icon[action]) if self.act_call[action] != None: - QTimer.singleShot(2000, self.act_call[action]) + TQTimer.singleShot(2000, self.act_call[action]) else: self.powermanager.criticalBatteryState = False if currentLevel <= warningLevel and self.batt_level < CHARGE_LEVEL_THRESHOLD: @@ -998,7 +1011,7 @@ class PowerManager(PowerManagerUI): if idlesec > idleTime: note = i18n("System idle for at least %1 minutes, %2 now.").arg(idleTime).arg(self.act_notify[action]) self.notify(note, self.act_icon[action]) - QTimer.singleShot(2000, self.act_call[action]) + TQTimer.singleShot(2000, self.act_call[action]) @@ -1113,7 +1126,7 @@ if __name__ == "__main__": aboutdata.addAuthor("Sebastian Kügler", "Developer", "sebas@kde.org","http://vizZzion.org") aboutdata.addAuthor("Jonathan Riddell", "Developer", "jriddell@ubuntu.com") aboutdata.addAuthor("Luka Renko", "Developer", "lure@kubuntu.org") - aboutdata.setProgramLogo(QImage("power-manager.png")) + aboutdata.setProgramLogo(TQImage("power-manager.png")) TDECmdLineArgs.init(sys.argv, aboutdata) #kapp = KUniqueApplication(True, True, False) #kapp = TDEApplication() diff --git a/powermanager/guidance_power_manager_ui.ui b/powermanager/guidance_power_manager_ui.ui index 77aa884..f8c1eba 100644 --- a/powermanager/guidance_power_manager_ui.ui +++ b/powermanager/guidance_power_manager_ui.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>PowerManagerUI</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>PowerManagerUI</cstring> </property> @@ -22,7 +22,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>GeneralSettingsBox</cstring> </property> @@ -33,7 +33,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>lockScreenOnResume</cstring> </property> @@ -43,7 +43,7 @@ </widget> </vbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>MainsPoweredBox</cstring> </property> @@ -62,7 +62,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout17</cstring> </property> @@ -70,7 +70,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>PoweredBrightnessLabel</cstring> </property> @@ -78,7 +78,7 @@ <string>Brightness</string> </property> </widget> - <widget class="QSlider"> + <widget class="TQSlider"> <property name="name"> <cstring>PoweredBrightnessSlider</cstring> </property> @@ -112,7 +112,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout13</cstring> </property> @@ -137,7 +137,7 @@ </size> </property> </spacer> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>PoweredIdleLabel</cstring> </property> @@ -145,7 +145,7 @@ <string>When the system is idle for more than</string> </property> </widget> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>PoweredIdleTime</cstring> </property> @@ -159,14 +159,14 @@ <string>To prevent data loss or other damage, you can have the system suspend or hibernate, so you don't run accidentally out of battery power. Configure the number of minutes below which the machine will run the configured action.</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <property name="name"> <cstring>PoweredIdleCombo</cstring> </property> </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout13_2_2</cstring> </property> @@ -191,7 +191,7 @@ </size> </property> </spacer> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>PoweredFreqLabel</cstring> </property> @@ -199,7 +199,7 @@ <string>CPU frequency scaling policy</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <property name="name"> <cstring>PoweredFreqCombo</cstring> </property> @@ -208,7 +208,7 @@ </widget> </vbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>BatteryBox</cstring> </property> @@ -227,7 +227,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout16</cstring> </property> @@ -235,7 +235,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>BatteryBrightnessLabel</cstring> </property> @@ -243,7 +243,7 @@ <string>Brightness</string> </property> </widget> - <widget class="QSlider"> + <widget class="TQSlider"> <property name="name"> <cstring>BatteryBrightnessSlider</cstring> </property> @@ -268,7 +268,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout14</cstring> </property> @@ -276,12 +276,12 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox" row="1" column="4"> + <widget class="TQComboBox" row="1" column="4"> <property name="name"> <cstring>BatteryIdleCombo</cstring> </property> </widget> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>BatteryIdleLabel</cstring> </property> @@ -289,12 +289,12 @@ <string>When the system is idle for more than</string> </property> </widget> - <widget class="QComboBox" row="0" column="4"> + <widget class="TQComboBox" row="0" column="4"> <property name="name"> <cstring>BatteryCriticalCombo</cstring> </property> </widget> - <widget class="QLabel" row="0" column="1" rowspan="1" colspan="2"> + <widget class="TQLabel" row="0" column="1" rowspan="1" colspan="2"> <property name="name"> <cstring>BatteryCriticalLabel</cstring> </property> @@ -302,7 +302,7 @@ <string>When battery remaining time drops below</string> </property> </widget> - <widget class="QSpinBox" row="1" column="3"> + <widget class="TQSpinBox" row="1" column="3"> <property name="name"> <cstring>BatteryIdleTime</cstring> </property> @@ -316,7 +316,7 @@ <string>To prevent data loss or other damage, you can have the system suspend or hibernate, so you don't run accidentally out of battery power. Configure the number of minutes below which the machine will run the configured action.</string> </property> </widget> - <widget class="QSpinBox" row="0" column="3"> + <widget class="TQSpinBox" row="0" column="3"> <property name="name"> <cstring>CriticalRemainTime</cstring> </property> @@ -366,7 +366,7 @@ </spacer> </grid> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout13_2</cstring> </property> @@ -391,7 +391,7 @@ </size> </property> </spacer> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>BatteryFreqLabel</cstring> </property> @@ -399,7 +399,7 @@ <string>CPU frequency scaling policy</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <property name="name"> <cstring>BatteryFreqCombo</cstring> </property> @@ -408,7 +408,7 @@ </widget> </vbox> </widget> - <widget class="QButtonGroup"> + <widget class="TQButtonGroup"> <property name="name"> <cstring>LaptopLidRadios</cstring> </property> @@ -433,7 +433,7 @@ <property name="spacing"> <number>5</number> </property> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>laptopClosedNone</cstring> </property> @@ -441,7 +441,7 @@ <string>Do nothing</string> </property> </widget> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>laptopClosedBlank</cstring> </property> @@ -449,7 +449,7 @@ <string>Lock screen</string> </property> </widget> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>laptopClosedSuspend</cstring> </property> @@ -463,7 +463,7 @@ <string>Suspend is a sleep state, the system will consume only very little energy when suspended</string> </property> </widget> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>laptopClosedHibernate</cstring> </property> @@ -477,7 +477,7 @@ <string>Hibernate or "Suspend to Disk" is a deep sleepstate, allowing the system to power off completely</string> </property> </widget> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>laptopClosedShutdown</cstring> </property> diff --git a/powermanager/notify.ui b/powermanager/notify.ui index ebf2950..affbec2 100644 --- a/powermanager/notify.ui +++ b/powermanager/notify.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>NotifyWidget</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>NotifyWidgetUI</cstring> </property> @@ -33,7 +33,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0" rowspan="2" colspan="1"> + <widget class="TQLabel" row="0" column="0" rowspan="2" colspan="1"> <property name="name"> <cstring>Icon</cstring> </property> @@ -52,7 +52,7 @@ <bool>true</bool> </property> </widget> - <widget class="QLabel" row="1" column="1"> + <widget class="TQLabel" row="1" column="1"> <property name="name"> <cstring>Text</cstring> </property> @@ -60,7 +60,7 @@ <string></string> </property> </widget> - <widget class="QLabel" row="0" column="1"> + <widget class="TQLabel" row="0" column="1"> <property name="name"> <cstring>Caption</cstring> </property> @@ -70,6 +70,6 @@ </widget> </grid> </widget> -<pixmapfunction>QPixmap</pixmapfunction> +<pixmapfunction>TQPixmap</pixmapfunction> <layoutdefaults spacing="6" margin="11"/> </UI> diff --git a/powermanager/tooltip.ui b/powermanager/tooltip.ui index 6055110..a120920 100644 --- a/powermanager/tooltip.ui +++ b/powermanager/tooltip.ui @@ -1,7 +1,7 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>ToolTip</class> <comment>Python:from tdeui import *</comment> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>ToolTip</cstring> </property> @@ -48,6 +48,6 @@ <slots> <slot>ToolTip_destroyed( TQObject * )</slot> </slots> -<pixmapfunction>QPixmap</pixmapfunction> +<pixmapfunction>TQPixmap</pixmapfunction> <layoutdefaults spacing="6" margin="11"/> </UI> |