Use ui file for main window.

This commit is contained in:
Teo Mrnjavac 2014-06-06 17:32:32 +02:00
parent b21dc4fe4c
commit fe27f8eab8
4 changed files with 34 additions and 3 deletions

View File

@ -11,7 +11,7 @@ set( calamaresSources
)
set( calamaresUi
#ui files go here
CalamaresWindow.ui
)
include_directories(

View File

@ -0,0 +1,25 @@
/* === This file is part of Calamares - <http://github.com/calamares> ===
*
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
*
* Calamares 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.
*
* Calamares 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 Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#include "CalamaresWindow.h"
CalamaresWindow::CalamaresWindow( QWidget* parent )
: QWidget( parent )
{
setupUi( this );
}

View File

@ -19,10 +19,16 @@
#ifndef CALAMARESWINDOW_H
#define CALAMARESWINDOW_H
#include <QMainWindow>
#include "ui_CalamaresWindow.h"
class CalamaresWindow : public QMainWindow
#include <QWidget>
class CalamaresWindow : public QWidget, private Ui::Base
{
Q_OBJECT
public:
CalamaresWindow( QWidget* parent = 0 );
virtual ~CalamaresWindow() {}
};