Commit 6d4ab453 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add mainwindow

parent cdc7ef5c
......@@ -2,6 +2,7 @@ project( pimactivitytest )
set( pimactivitytest_SRCS
main.cpp
mainwindow.cpp
)
kde4_add_executable(pimactivitytest TEST ${pimactivitytest_SRCS} )
......
......@@ -23,6 +23,8 @@
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include "mainwindow.h"
int main( int argc, char **argv )
{
const QByteArray& ba = QByteArray( "pimactivitytest_gui" );
......@@ -30,7 +32,7 @@ int main( int argc, char **argv )
KAboutData aboutData( ba, ba, name, ba, name );
KCmdLineArgs::init( argc, argv, &aboutData );
KApplication app;
//ComposerHtmlEditor* mw = new ComposerHtmlEditor();
//mw->show();
MainWindow* mw = new MainWindow;
mw->show();
app.exec();
}
/*
Copyright (c) 2013 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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 this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "mainwindow.h"
#include <QTextEdit>
MainWindow::MainWindow()
: QMainWindow()
{
mEdit = new QTextEdit;
setCentralWidget(mEdit);
}
#include "mainwindow.moc"
/*
Copyright (c) 2013 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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 this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
class QTextEdit;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
private:
QTextEdit *mEdit;
};
#endif // MAINWINDOW_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment