1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-03 11:24:10 +01:00

set dialog windowFlags for a frameless window.

Signed-off-by: Kevin Vertucio <kevinv033@gmail.com>
This commit is contained in:
Kevin Vertucio 2013-01-22 14:05:02 -05:00
parent 03ad1e55f5
commit 24068a6638
2 changed files with 8 additions and 6 deletions

View File

@ -58,9 +58,9 @@ AuthorsDialog::AuthorsDialog(QWidget *parent)
// We need to set the window icon explicitly here since for some reason the // We need to set the window icon explicitly here since for some reason the
// application icon isn't used when the size of the dialog is fixed (at least not on X11/GNOME) // application icon isn't used when the size of the dialog is fixed (at least not on X11/GNOME)
setWindowIcon(QIcon(":/core/images/openpilot_logo_32.png")); // setWindowIcon(QIcon(":/core/images/openpilot_logo_32.png"));
setWindowTitle(tr("About OpenPilot")); // setWindowTitle(tr("About OpenPilot"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); setWindowFlags(Qt::FramelessWindowHint | Qt::Dialog);
//This loads a QML doc containing a Tabbed view //This loads a QML doc containing a Tabbed view
QDeclarativeView *view = new QDeclarativeView(this); QDeclarativeView *view = new QDeclarativeView(this);
view->setSource(QUrl("qrc:/core/qml/AboutDialog.qml")); view->setSource(QUrl("qrc:/core/qml/AboutDialog.qml"));

View File

@ -41,10 +41,12 @@
import QtQuick 1.1 import QtQuick 1.1
import QtWebKit 1.0 import QtWebKit 1.0
// This is a tabbed pane element. Add a nested Rectangle to add a tab.
TabWidget { TabWidget {
id: tabs id: tabs
width: 640; height: 480 width: 640; height: 480
// This tab is for the GCS version information
Rectangle { Rectangle {
property string title: "OpenPilot GCS" property string title: "OpenPilot GCS"
anchors.fill: parent anchors.fill: parent
@ -67,7 +69,7 @@
} }
} }
} }
// This is a stub for the Plugins if I can ever figure that out.
// Rectangle { // Rectangle {
// property string title: "Plugins" // property string title: "Plugins"
// anchors.fill: parent // anchors.fill: parent
@ -85,7 +87,7 @@
// } // }
// } // }
// } // }
// This tab is for the authors/contributors/credits
Rectangle { Rectangle {
property string title: "Authors" property string title: "Authors"
anchors.fill: parent; color: "#e3e3e3" anchors.fill: parent; color: "#e3e3e3"