refactor: Renames member _splitAreas to _cross.

mod: removes ContainerWiget::set/Orientation() members. Obsolete since
everything is managed over drop areas.
This commit is contained in:
mfreiholz
2016-04-18 07:18:50 +02:00
parent 86c23c6269
commit 9c530dcc58
5 changed files with 17 additions and 34 deletions
@@ -29,7 +29,6 @@ class InternalContentData;
class ADS_EXPORT_API ContainerWidget : public QFrame
{
Q_OBJECT
Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged)
friend class SectionContent;
friend class SectionWidget;
@@ -45,9 +44,6 @@ public:
// Public API
//
Qt::Orientation orientation() const;
void setOrientation(Qt::Orientation orientation);
/*!
* Adds the section-content <em>sc</em> to this container-widget into the section-widget <em>sw</em>.
* If <em>sw</em> is not NULL, the <em>area</em> is used to indicate how the content should be arranged.
@@ -12,8 +12,10 @@ class QGridLayout;
ADS_NAMESPACE_BEGIN
class DropOverlayCross;
// DropOverlay paints a translucent rectangle over another widget.
// It can also show different types of drop area indicators.
/*!
* DropOverlay paints a translucent rectangle over another widget. The geometry
* of the rectangle is based on the mouse location.
*/
class DropOverlay : public QFrame
{
Q_OBJECT
@@ -41,7 +43,7 @@ protected:
private:
DropAreas _allowedAreas;
DropOverlayCross* _splitAreas;
DropOverlayCross* _cross;
bool _fullAreaDrop;
QPointer<QWidget> _target;
@@ -49,7 +51,7 @@ private:
DropArea _lastLocation;
};
// DropSplitAreas shows a cross with 5 different drop area possibilities.
// DropOverlayCross shows a cross with 5 different drop area possibilities.
class DropOverlayCross : public QWidget
{
Q_OBJECT