Makes project mostly compatible with Qt 4.5

This commit is contained in:
mfreiholz
2016-02-12 08:00:31 +01:00
parent 08f1968b31
commit 8f13dbd77c
12 changed files with 106 additions and 16 deletions

View File

@@ -37,15 +37,6 @@ enum DropArea
};
Q_DECLARE_FLAGS(DropAreas, DropArea)
class InternalContentData
{
public:
InternalContentData() : titleWidget(0), contentWidget(0) {}
QSharedPointer<class SectionContent> content;
class SectionTitleWidget* titleWidget;
class SectionContentWidget* contentWidget;
};
void deleteEmptySplitter(class ContainerWidget* container);
class ContainerWidget* findParentContainerWidget(class QWidget* w);
class SectionWidget* findParentSectionWidget(class QWidget* w);

View File

@@ -16,6 +16,8 @@ class QMenu;
ADS_NAMESPACE_BEGIN
class InternalContentData;
// ContainerWidget is the main container to provide the docking
// functionality. It manages mulitple Sections and all possible areas.
class ContainerWidget : public QFrame

View File

@@ -14,6 +14,7 @@ ADS_NAMESPACE_BEGIN
class ContainerWidget;
class SectionTitleWidget;
class SectionContentWidget;
class InternalContentData;
// FloatingWidget holds and displays SectionContent as a floating window.
// It can be resized, moved and dropped back into a SectionWidget.

View File

@@ -0,0 +1,26 @@
#ifndef ADS_INTERNAL_HEADER
#define ADS_INTERNAL_HEADER
#include "ads/API.h"
#include "ads/SectionContent.h"
ADS_NAMESPACE_BEGIN
class SectionContent;
class SectionTitleWidget;
class SectionContentWidget;
class InternalContentData
{
public:
InternalContentData();
~InternalContentData();
SectionContent::RefPtr content;
SectionTitleWidget* titleWidget;
SectionContentWidget* contentWidget;
};
ADS_NAMESPACE_END
#endif

View File

@@ -17,6 +17,7 @@ ADS_NAMESPACE_BEGIN
class ContainerWidget;
class SectionTitleWidget;
class SectionContentWidget;
class InternalContentData;
// SectionWidget manages multiple instances of SectionContent.
// It displays a title TAB, which is clickable and will switch to