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

[OP-835] Qt 5.1.0 - migrated GCS libs/extensionsystem

This commit is contained in:
Philippe Renon 2013-09-15 22:06:11 +02:00
parent 3149dc1144
commit 7e042a0bd3
6 changed files with 12 additions and 10 deletions

View File

@ -8,6 +8,8 @@ unix:!macx:!freebsd*:LIBS += -ldl
DEFINES += GCS_TEST_DIR=\\\"$$GCS_SOURCE_TREE\\\"
QT += widgets
HEADERS += pluginerrorview.h \
plugindetailsview.h \
iplugin.h \

View File

@ -31,7 +31,7 @@
#include "extensionsystem_global.h"
#include <QtGui/QWidget>
#include <QWidget>
namespace ExtensionSystem {
class PluginSpec;

View File

@ -31,7 +31,7 @@
#include "extensionsystem_global.h"
#include <QtGui/QWidget>
#include <QWidget>
namespace ExtensionSystem {
class PluginSpec;

View File

@ -433,8 +433,8 @@ void PluginManager::startTests()
methods.append("arg0");
// We only want slots starting with "test"
for (int i = mo->methodOffset(); i < mo->methodCount(); ++i) {
if (QByteArray(mo->method(i).signature()).startsWith("test")) {
QString method = QString::fromLatin1(mo->method(i).signature());
if (QByteArray(mo->method(i).methodSignature()).startsWith("test")) {
QString method = QString::fromLatin1(mo->method(i).methodSignature());
methods.append(method.left(method.size() - 2));
}
}

View File

@ -33,8 +33,8 @@
#include "ui_pluginview.h"
#include <QtCore/QDir>
#include <QtGui/QHeaderView>
#include <QtGui/QTreeWidgetItem>
#include <QHeaderView>
#include <QTreeWidgetItem>
#include <QtDebug>
/*!
@ -76,9 +76,9 @@ PluginView::PluginView(PluginManager *manager, QWidget *parent)
{
m_ui->setupUi(this);
QHeaderView *header = m_ui->pluginWidget->header();
header->setResizeMode(0, QHeaderView::ResizeToContents);
header->setResizeMode(1, QHeaderView::ResizeToContents);
header->setResizeMode(2, QHeaderView::ResizeToContents);
header->setSectionResizeMode(0, QHeaderView::ResizeToContents);
header->setSectionResizeMode(1, QHeaderView::ResizeToContents);
header->setSectionResizeMode(2, QHeaderView::ResizeToContents);
m_ui->pluginWidget->sortItems(1, Qt::AscendingOrder);
p->manager = manager;
connect(p->manager, SIGNAL(pluginsChanged()), this, SLOT(updateList()));

View File

@ -31,7 +31,7 @@
#include "extensionsystem_global.h"
#include <QtGui/QWidget>
#include <QWidget>
QT_BEGIN_NAMESPACE
class QTreeWidgetItem;