[Chinese-commits] [fqterm] 15/76: change code style
Boyuan Yang
hosiet-guest at moszumanska.debian.org
Thu Oct 27 03:16:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
hosiet-guest pushed a commit to branch master
in repository fqterm.
commit ad5f034e13797f1846d3f967e6db0f6137e1f1f3
Author: Iru Cai <mytbk920423 at gmail.com>
Date: Sat May 3 20:55:35 2014 +0800
change code style
---
src/fqterm/main.cpp | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/fqterm/main.cpp b/src/fqterm/main.cpp
index 40969fd..ae9eebb 100644
--- a/src/fqterm/main.cpp
+++ b/src/fqterm/main.cpp
@@ -123,13 +123,12 @@ int main(int argc, char **argv) {
return -1;
}
- FQTermFrame *mw = new FQTermFrame();
- mw->setWindowTitle("FQTerm " + QString(FQTERM_VERSION_STRING));
- mw->setWindowIcon(QPixmap(getPath(RESOURCE) + "pic/fqterm.png"));
- mw->show();
+ FQTermFrame mw;
+ mw.setWindowTitle("FQTerm " + QString(FQTERM_VERSION_STRING));
+ mw.setWindowIcon(QPixmap(getPath(RESOURCE) + "pic/fqterm.png"));
+ mw.show();
a.setQuitOnLastWindowClosed(false);
- FQ_VERIFY(a.connect(mw, SIGNAL(destroyed(QObject*)), &a, SLOT(mainWindowDestroyed(QObject*)), Qt::QueuedConnection));
- FQ_VERIFY(a.connect(&a, SIGNAL(saveData()), mw, SLOT(saveSetting())));
- int res = a.exec();
- return res;
+ FQ_VERIFY(a.connect(&mw, SIGNAL(destroyed(QObject*)), &a, SLOT(mainWindowDestroyed(QObject*)), Qt::QueuedConnection));
+ FQ_VERIFY(a.connect(&a, SIGNAL(saveData()), &mw, SLOT(saveSetting())));
+ return a.exec();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/chinese/fqterm.git
More information about the Chinese-commits
mailing list