Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
4900b606
Commit
4900b606
authored
Jul 18, 2019
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to customize TabBar and TabButton
parent
7321cef6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
5 deletions
+44
-5
qgroundcontrol.qrc
qgroundcontrol.qrc
+2
-0
QGCTabBar.qml
src/QmlControls/QGCTabBar.qml
+13
-0
QGCTabButton.qml
src/QmlControls/QGCTabButton.qml
+22
-0
qmldir
src/QmlControls/QGroundControl/Controls/qmldir
+2
-0
JoystickConfig.qml
src/VehicleSetup/JoystickConfig.qml
+5
-5
No files found.
qgroundcontrol.qrc
View file @
4900b606
...
...
@@ -125,6 +125,8 @@
<file alias="QGroundControl/Controls/QGCRadioButton.qml">src/QmlControls/QGCRadioButton.qml</file>
<file alias="QGroundControl/Controls/QGCSlider.qml">src/QmlControls/QGCSlider.qml</file>
<file alias="QGroundControl/Controls/QGCSwitch.qml">src/QmlControls/QGCSwitch.qml</file>
<file alias="QGroundControl/Controls/QGCTabBar.qml">src/QmlControls/QGCTabBar.qml</file>
<file alias="QGroundControl/Controls/QGCTabButton.qml">src/QmlControls/QGCTabButton.qml</file>
<file alias="QGroundControl/Controls/QGCTextField.qml">src/QmlControls/QGCTextField.qml</file>
<file alias="QGroundControl/Controls/QGCToolBarButton.qml">src/QmlControls/QGCToolBarButton.qml</file>
<file alias="QGroundControl/Controls/QGCViewDialog.qml">src/QmlControls/QGCViewDialog.qml</file>
...
...
src/QmlControls/QGCTabBar.qml
0 → 100644
View file @
4900b606
import
QtQuick
2.11
import
QtQuick
.
Controls
2.4
import
QGroundControl
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
ScreenTools
1.0
TabBar
{
background
:
Rectangle
{
color
:
qgcPal
.
window
}
}
src/QmlControls/QGCTabButton.qml
0 → 100644
View file @
4900b606
import
QtQuick
2.11
import
QtQuick
.
Controls
2.4
import
QGroundControl
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
ScreenTools
1.0
TabButton
{
id
:
control
property
bool
_showHighlight
:
(
pressed
|
hovered
|
checked
)
background
:
Rectangle
{
color
:
_showHighlight
?
qgcPal
.
buttonHighlight
:
qgcPal
.
button
}
contentItem
:
QGCLabel
{
text
:
control
.
text
color
:
_showHighlight
?
qgcPal
.
buttonHighlightText
:
qgcPal
.
buttonText
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
elide
:
Text
.
ElideRight
}
}
src/QmlControls/QGroundControl/Controls/qmldir
View file @
4900b606
...
...
@@ -60,6 +60,8 @@ QGCPipable 1.0 QGCPipable.qml
QGCRadioButton 1.0 QGCRadioButton.qml
QGCSlider 1.0 QGCSlider.qml
QGCSwitch 1.0 QGCSwitch.qml
QGCTabBar 1.0 QGCTabBar.qml
QGCTabButton 1.0 QGCTabButton.qml
QGCTextField 1.0 QGCTextField.qml
QGCToolBarButton 1.0 QGCToolBarButton.qml
QGCViewDialog 1.0 QGCViewDialog.qml
...
...
src/VehicleSetup/JoystickConfig.qml
View file @
4900b606
...
...
@@ -58,20 +58,20 @@ SetupPage {
id
:
controller
}
TabBar
{
QGC
TabBar
{
id
:
bar
width
:
parent
.
width
anchors.top
:
parent
.
top
TabButton
{
QGC
TabButton
{
text
:
qsTr
(
"
General
"
)
}
TabButton
{
QGC
TabButton
{
text
:
qsTr
(
"
Button Assigment
"
)
}
TabButton
{
QGC
TabButton
{
text
:
qsTr
(
"
Calibration
"
)
}
TabButton
{
QGC
TabButton
{
text
:
qsTr
(
"
Advanced
"
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment