|
|
|
@ -224,8 +224,7 @@ void QGCToolBar::setPerspectiveChangeActions(const QList<QAction*> &actions)
@@ -224,8 +224,7 @@ void QGCToolBar::setPerspectiveChangeActions(const QList<QAction*> &actions)
|
|
|
|
|
advancedButton->setText(tr("Pro")); |
|
|
|
|
advancedButton->setToolTip(tr("Options for advanced users")); |
|
|
|
|
advancedButton->setCheckable(true); |
|
|
|
|
// advancedButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
|
|
|
|
advancedButton->setStyleSheet("QPushButton { min-width: 60px; font-weight: bold; color: #222222; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #A2A3A4, stop: 1 #B6B7B8); margin-left: 0px; margin-right: 13px; padding-left: 0px; padding-right: 8px; border-radius: 0px; border : 0px solid blue; border-bottom-right-radius: 6px; border-top-right-radius: 6px; border-right: 1px solid #484848; border-top: 1px solid #484848; border-bottom: 1px solid #484848; } QPushButton:checked { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #555555, stop: 1 #787878); color: #DDDDDD; }"); |
|
|
|
|
advancedButton->setStyleSheet("QPushButton { min-width: 60px; font-weight: bold; text-align: left; color: #222222; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #A2A3A4, stop: 1 #B6B7B8); margin-left: 0px; margin-right: 13px; padding-left: 4px; padding-right: 8px; border-radius: 0px; border : 0px solid blue; border-bottom-right-radius: 6px; border-top-right-radius: 6px; border-right: 1px solid #484848; border-top: 1px solid #484848; border-bottom: 1px solid #484848; } QPushButton:checked { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #555555, stop: 1 #787878); color: #DDDDDD; }"); |
|
|
|
|
addWidget(advancedButton); |
|
|
|
|
group->addButton(advancedButton); |
|
|
|
|
} else { |
|
|
|
|