Skip to content

Commit

Permalink
Finish QDialog to QMainWindow transition
Browse files Browse the repository at this point in the history
  • Loading branch information
agateau committed Oct 12, 2011
1 parent 6183e80 commit 1a99be5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 135 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
all:
pyuic4 addtaskdialog.ui -o ui_addtaskdialog.py
pyuic4 logdialog.ui -o ui_logdialog.py
pyuic4 mainwindow.ui -o ui_mainwindow.py

clean:
Expand Down
129 changes: 0 additions & 129 deletions logdialog.ui

This file was deleted.

4 changes: 2 additions & 2 deletions logdialog.py → mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
QUERY_PROJECT = 1
QUERY_DONE = 2

class LogDialog(QMainWindow):
class MainWindow(QMainWindow):
def __init__(self):
super(LogDialog, self).__init__()
super(MainWindow, self).__init__()
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
self.centralWidget().layout().setMargin(0)
Expand Down
2 changes: 1 addition & 1 deletion mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
<string>QYLog</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout">
Expand Down
4 changes: 2 additions & 2 deletions qylog.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
from yokadi import db

import qymain
from logdialog import LogDialog
from mainwindow import MainWindow

def main(argv):
app = QApplication(argv)
parser = qymain.createOptionParser()
options, args = parser.parse_args(argv)
db.connectDatabase(options.filename)

dlg = LogDialog()
dlg = MainWindow()
dlg.show()
return app.exec_()

Expand Down

0 comments on commit 1a99be5

Please sign in to comment.