mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
GCS/qxt: Add libqxt to libs.pro
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@551 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
fcc94eaec0
commit
c6ca9772e5
@ -10,5 +10,6 @@ SUBDIRS = \
|
||||
qextserialport \
|
||||
utils \
|
||||
glc_lib\
|
||||
qymodem
|
||||
qymodem \
|
||||
libqxt
|
||||
|
||||
|
@ -10,7 +10,6 @@ include(../../openpilotgcsplugin.pri)
|
||||
include(../../libs/utils/utils.pri)
|
||||
include(../../shared/scriptwrapper/scriptwrapper.pri)
|
||||
include(coreplugin_dependencies.pri)
|
||||
include(../../libs/libqxt/libqxt.pri)
|
||||
INCLUDEPATH += dialogs \
|
||||
uavgadgetmanager \
|
||||
actionmanager
|
||||
|
@ -28,10 +28,7 @@
|
||||
#ifndef EMPTYGADGETWIDGET_H_
|
||||
#define EMPTYGADGETWIDGET_H_
|
||||
|
||||
#include <QtGui/QWidget>
|
||||
#include <QtGui/QLabel>
|
||||
class QWidget;
|
||||
class QLabel;
|
||||
|
||||
class EmptyGadgetWidget : public QLabel
|
||||
{
|
||||
|
@ -156,15 +156,15 @@ void WelcomeMode::initPlugins()
|
||||
QList<IWelcomePage*> plugins = PluginManager::instance()->getObjects<IWelcomePage>();
|
||||
qSort(plugins.begin(), plugins.end(), &sortFunction);
|
||||
foreach (IWelcomePage* plugin, plugins) {
|
||||
QToolButton * btn = new QToolButton;
|
||||
btn->setCheckable(true);
|
||||
btn->setText(plugin->title());
|
||||
btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
btn->setAutoExclusive(true);
|
||||
connect (btn, SIGNAL(clicked()), SLOT(showClickedPage()));
|
||||
// QToolButton * btn = new QToolButton;
|
||||
// btn->setCheckable(true);
|
||||
// btn->setText(plugin->title());
|
||||
// btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
// btn->setAutoExclusive(true);
|
||||
// connect (btn, SIGNAL(clicked()), SLOT(showClickedPage()));
|
||||
m_d->ui.stackedWidget->addWidget(plugin->page());
|
||||
// m_d->buttonLayout->addWidget(btn);
|
||||
m_d->buttonMap.insert(btn, plugin->page());
|
||||
// m_d->buttonMap.insert(btn, plugin->page());
|
||||
}
|
||||
m_d->buttonLayout->addSpacing(5);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user