Diff of /qman/main.cpp [000000] .. [1e3903]  Maximize  Restore

Switch to side-by-side view

--- a
+++ b/qman/main.cpp
@@ -0,0 +1,53 @@
+// Copyright (C) 2011 David Sugar, Tycho Softworks
+//
+// This file is part of coastal-qt.
+//
+// Coastal-qt is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// coastal-qt is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with coastal-qt.  If not, see <http://www.gnu.org/licenses/>.
+
+#include "program.h"
+#include "ui_main.h"
+
+static Ui::MainWindow ui;
+
+Main::Main(QWidget *parent) :
+QMainWindow(parent)
+{
+    ui.setupUi((QMainWindow *)this);
+
+    connect(ui.actionQuit, SIGNAL(triggered()), qApp, SLOT(quit()));
+
+    ui.searchBox->setFocus();
+}
+
+Main::~Main()
+{
+}
+
+int main(int argc, char *argv[])
+{
+    QApplication app(argc, argv);
+    Main w;
+
+    QCoreApplication::setOrganizationName("GNU Telephony");
+    QCoreApplication::setOrganizationDomain("gnutelephony.org");
+    QCoreApplication::setApplicationName("qman");
+
+    QTranslator translator;
+    translator.load(QLocale::system().name(), TRANSLATIONS);
+    app.installTranslator(&translator);
+
+    w.show();
+    return app.exec();
+}
+