This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
179 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
SplitterTest.qml | ||
This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. | ||
Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com | ||
Author: Lova Widmark <znurree@gmail.com> | ||
Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in | ||
accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. | ||
Contact info@kdab.com if any conditions of this licensing are not clear to you. | ||
This program 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 2 of the License, or | ||
(at your option) any later version. | ||
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, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import QtWidgets 1.0 | ||
|
||
Splitter { | ||
Label { | ||
text: "Label 1" | ||
} | ||
Label { | ||
text: "Label 2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
splitter.cpp | ||
This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. | ||
Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com | ||
Author: Lova Widmark <znurree@gmail.com> | ||
Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in | ||
accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. | ||
Contact info@kdab.com if any conditions of this licensing are not clear to you. | ||
This program 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 2 of the License, or | ||
(at your option) any later version. | ||
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, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "splitter.h" | ||
|
||
#include "ui_splitter.h" | ||
|
||
Splitter::Splitter(QWidget *parent) | ||
: QSplitter(parent) | ||
, ui(new Ui::Splitter) | ||
{ | ||
ui->setupUi(this); | ||
} | ||
|
||
Splitter::~Splitter() | ||
{ | ||
delete ui; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
splitter.h | ||
This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. | ||
Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com | ||
Author: Lova Widmark <znurree@gmail.com> | ||
Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in | ||
accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. | ||
Contact info@kdab.com if any conditions of this licensing are not clear to you. | ||
This program 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 2 of the License, or | ||
(at your option) any later version. | ||
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, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef SPLITTER_H | ||
#define SPLITTER_H | ||
|
||
#include <QSplitter> | ||
|
||
QT_BEGIN_NAMESPACE | ||
namespace Ui | ||
{ | ||
class Splitter; | ||
} | ||
QT_END_NAMESPACE | ||
|
||
class Splitter : public QSplitter | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit Splitter(QWidget *parent = Q_NULLPTR); | ||
~Splitter(); | ||
|
||
private: | ||
Ui::Splitter *ui; | ||
}; | ||
|
||
#endif // SPLITTER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>Splitter</class> | ||
<widget class="QSplitter" name="Splitter"> | ||
<widget class="QLabel" name="label"> | ||
<property name="text"> | ||
<string>Label 1</string> | ||
</property> | ||
</widget> | ||
<widget class="QLabel" name="label_2"> | ||
<property name="text"> | ||
<string>Label 2</string> | ||
</property> | ||
</widget> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters