diff options
Diffstat (limited to 'app_templates/kdeapp')
| -rwxr-xr-x | app_templates/kdeapp/setup.py | 2 | ||||
| -rwxr-xr-x | app_templates/kdeapp/src/kdeapp.py | 16 | ||||
| -rw-r--r-- | app_templates/kdeapp/src/kdeappiface.py | 2 | ||||
| -rw-r--r-- | app_templates/kdeapp/src/kdeappview.py | 16 | ||||
| -rw-r--r-- | app_templates/kdeapp/src/prefdialog.py | 18 | 
5 files changed, 27 insertions, 27 deletions
| diff --git a/app_templates/kdeapp/setup.py b/app_templates/kdeapp/setup.py index 710c6aa..21386c6 100755 --- a/app_templates/kdeapp/setup.py +++ b/app_templates/kdeapp/setup.py @@ -23,7 +23,7 @@ tdedistutils.setup(name="kdeapp",      author_email="YOUR@EMAIL.com",      url="http://www.KDEAPP.com/",      min_kde_version = "3.0.0", -    min_qt_version = "3.0.0", +    min_tqt_version = "3.0.0",      license = "GPL",      application_data = ['src/kdeapp.py','src/prefdialog.py','src/kdeappview.py'],      executable_links = [('kdeapp','kdeapp.py')], diff --git a/app_templates/kdeapp/src/kdeapp.py b/app_templates/kdeapp/src/kdeapp.py index 842d283..68d07af 100755 --- a/app_templates/kdeapp/src/kdeapp.py +++ b/app_templates/kdeapp/src/kdeapp.py @@ -15,7 +15,7 @@  #                                                                         #  ########################################################################### -from PyTQt.qt import * +from PyTQt.tqt import *  from tdecore import *  from tdeui import *  import sys @@ -55,7 +55,7 @@ class KdeApp(TDEMainWindow):          self.connect(self._view, PYSIGNAL("signalChangeCaption"), self.changeCaption)      def load(self,url): -        target = QString() +        target = TQString()          # the below code is what you should normally do.  in this          # example case, we want the url to our own.  you probably          # want to use this code instead for your app @@ -124,7 +124,7 @@ class KdeApp(TDEMainWindow):      def dropEvent(self,event):          # this is a very simplistic implementation of a drop event.  we -        # will only accept a dropped URL.  the Qt dnd code can do *much* +        # will only accept a dropped URL.  the TQt dnd code can do *much*          # much more, so please read the docs there          urls = KURL.List() @@ -150,7 +150,7 @@ class KdeApp(TDEMainWindow):          # button is clicked          ## this brings up the generic open dialog -        #KURL url = KURLRequesterDlg::getURL(QString::null, this, i18n("Open Location") ); +        #KURL url = KURLRequesterDlg::getURL(TQString::null, this, i18n("Open Location") );          # standard filedialog          url = KFileDialog.getOpenURL(None, One, self, i18n("Open Location")) @@ -181,14 +181,14 @@ class KdeApp(TDEMainWindow):              self._printer = KPrinter()          if self._printer.setup(self): -            # setup the printer.  with Qt, you always "print" to a -            # QPainter.. whether the output medium is a pixmap, a screen, +            # setup the printer.  with TQt, you always "print" to a +            # TQPainter.. whether the output medium is a pixmap, a screen,              # or paper -            p = QPainter() +            p = TQPainter()              p.begin(self._printer)              # we let our view do the actual printing -            metrics = QPaintDeviceMetrics(m_printer) +            metrics = TQPaintDeviceMetrics(m_printer)              self._view.print_(p, metrics.height(), metrics.width())              # and send the result to the printer diff --git a/app_templates/kdeapp/src/kdeappiface.py b/app_templates/kdeapp/src/kdeappiface.py index 1ff3b0f..5600437 100644 --- a/app_templates/kdeapp/src/kdeappiface.py +++ b/app_templates/kdeapp/src/kdeappiface.py @@ -20,7 +20,7 @@ from dcopexport import DCOPExObj  class TestAppIface(DCOPExObj):      def __init__(self, parent, id="Value"):          DCOPExObj.__init__(self, id) -        self.addMethod("void openURL(QString url)", self.openURL) +        self.addMethod("void openURL(TQString url)", self.openURL)      def openURL(self,url):          pass diff --git a/app_templates/kdeapp/src/kdeappview.py b/app_templates/kdeapp/src/kdeappview.py index 92ec6df..af2537a 100644 --- a/app_templates/kdeapp/src/kdeappview.py +++ b/app_templates/kdeapp/src/kdeappview.py @@ -15,7 +15,7 @@  #                                                                         #  ########################################################################### -from PyTQt.qt import * +from PyTQt.tqt import *  from tdecore import *  from tdeui import *  from tdeio import * @@ -23,13 +23,13 @@ from tdehtml import *  from tdeparts import *  #from kdeappiface import * -class KdeAppView(QWidget): +class KdeAppView(TQWidget):      def __init__(self,parent): -        QWidget.__init__(self,parent) +        TQWidget.__init__(self,parent)          #self._dcopclient= KdeAppIface(self,"KdeAppIface")          # setup our layout manager to automatically add our widgets -        top_layout = QHBoxLayout(self) +        top_layout = TQHBoxLayout(self)          top_layout.setAutoAdd(True)          if True: @@ -58,7 +58,7 @@ class KdeAppView(QWidget):                  # we now know that our offer can handle HTML and is a part.                  # since it is a part, it must also have a library... let's try to                  # load that now -                self._html = createReadOnlyPart(ptr.library(),self,ptr.name(),"KParts::ReadOnlyPart",QStringList()) +                self._html = createReadOnlyPart(ptr.library(),self,ptr.name(),"KParts::ReadOnlyPart", TQStringList())                  if self._html is not None:                      break @@ -68,8 +68,8 @@ class KdeAppView(QWidget):                  KMessageBox.error(self, i18n("Could not find a suitable HTML component"))                  return -        QObject.connect(self._html, SIGNAL("setWindowCaption(const QString&)"), self.slotSetTitle) -        QObject.connect(self._html, SIGNAL("setStatusBarText(const QString&)"), self.slotOnURL) +        TQObject.connect(self._html, SIGNAL("setWindowCaption(const TQString&)"), self.slotSetTitle) +        TQObject.connect(self._html, SIGNAL("setStatusBarText(const TQString&)"), self.slotOnURL)      def print_(self,p,height,width):          pass @@ -80,7 +80,7 @@ class KdeAppView(QWidget):          return self._html.url().url()      def openURL(self,url): -        if isinstance(url,QString): +        if isinstance(url,TQString):              url = KURL(url)          self._html.openURL(url) diff --git a/app_templates/kdeapp/src/prefdialog.py b/app_templates/kdeapp/src/prefdialog.py index ef8ec0f..ce58dac 100644 --- a/app_templates/kdeapp/src/prefdialog.py +++ b/app_templates/kdeapp/src/prefdialog.py @@ -15,7 +15,7 @@  #                                                                         #  ########################################################################### -from PyTQt.qt import * +from PyTQt.tqt import *  from tdecore import *  from tdeui import * @@ -33,21 +33,21 @@ class TestAppPrefDialog(KDialogBase):          frame = self.addPage(i18n("Second Page"), i18n("Page Two Options"))          self._pageTwo = TestAppPrefPageTwo(frame) -class TestAppPrefPageOne(QFrame): +class TestAppPrefPageOne(TQFrame):      def __init__(self,parent): -        QFrame.__init__(self,parent) +        TQFrame.__init__(self,parent) -        layout = QHBoxLayout(self) +        layout = TQHBoxLayout(self)          layout.setAutoAdd(True) -        QLabel(i18n("Add something here"), self) +        TQLabel(i18n("Add something here"), self) -class TestAppPrefPageTwo(QFrame): +class TestAppPrefPageTwo(TQFrame):      def __init__(self,parent): -        QFrame.__init__(self,parent) +        TQFrame.__init__(self,parent) -        layout = QHBoxLayout(self) +        layout = TQHBoxLayout(self)          layout.setAutoAdd(True) -        QLabel(i18n("Add something here"), self) +        TQLabel(i18n("Add something here"), self) | 
