mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Use ui file for main window.
This commit is contained in:
parent
b21dc4fe4c
commit
fe27f8eab8
4 changed files with 34 additions and 3 deletions
|
@ -11,7 +11,7 @@ set( calamaresSources
|
||||||
)
|
)
|
||||||
|
|
||||||
set( calamaresUi
|
set( calamaresUi
|
||||||
#ui files go here
|
CalamaresWindow.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
|
|
|
@ -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 );
|
||||||
|
}
|
|
@ -19,10 +19,16 @@
|
||||||
#ifndef CALAMARESWINDOW_H
|
#ifndef CALAMARESWINDOW_H
|
||||||
#define 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() {}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue