make PartWidgetBase a QWidget
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1114049
This commit is contained in:
parent
22978e66b8
commit
92a9bd2878
|
@ -31,8 +31,7 @@
|
||||||
@param parent pointer to the parent widget
|
@param parent pointer to the parent widget
|
||||||
*/
|
*/
|
||||||
PartTableWidget::PartTableWidget(QWidget* parent) :
|
PartTableWidget::PartTableWidget(QWidget* parent) :
|
||||||
QWidget(parent),
|
PartWidgetBase(parent),
|
||||||
PartWidgetBase(),
|
|
||||||
m_PartitionTable(NULL),
|
m_PartitionTable(NULL),
|
||||||
m_LabelEmpty(i18nc("@info", "Please select a device."), this),
|
m_LabelEmpty(i18nc("@info", "Please select a device."), this),
|
||||||
m_ReadOnly(false)
|
m_ReadOnly(false)
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
|
|
||||||
#include "gui/partwidgetbase.h"
|
#include "gui/partwidgetbase.h"
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
|
@ -36,7 +35,7 @@ class QMouseEvent;
|
||||||
/** @brief Widget that represents a PartitionTable.
|
/** @brief Widget that represents a PartitionTable.
|
||||||
@author vl@fidra.de
|
@author vl@fidra.de
|
||||||
*/
|
*/
|
||||||
class PartTableWidget : public QWidget, public PartWidgetBase
|
class PartTableWidget : public PartWidgetBase
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_DISABLE_COPY(PartTableWidget)
|
Q_DISABLE_COPY(PartTableWidget)
|
||||||
|
|
|
@ -37,8 +37,7 @@
|
||||||
@param p pointer to the Partition this widget will show. must not be NULL.
|
@param p pointer to the Partition this widget will show. must not be NULL.
|
||||||
*/
|
*/
|
||||||
PartWidget::PartWidget(QWidget* parent, const Partition* p) :
|
PartWidget::PartWidget(QWidget* parent, const Partition* p) :
|
||||||
QWidget(parent),
|
PartWidgetBase(parent),
|
||||||
PartWidgetBase(),
|
|
||||||
m_Partition(p),
|
m_Partition(p),
|
||||||
m_Active(false)
|
m_Active(false)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
|
|
||||||
#include <kdebug.h>
|
#include <kdebug.h>
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
|
|
||||||
class Partition;
|
class Partition;
|
||||||
|
|
||||||
class QPaintEvent;
|
class QPaintEvent;
|
||||||
|
@ -38,7 +36,7 @@ class QResizeEvent;
|
||||||
|
|
||||||
@author vl@fidra.de
|
@author vl@fidra.de
|
||||||
*/
|
*/
|
||||||
class PartWidget : public QWidget, public PartWidgetBase
|
class PartWidget : public PartWidgetBase
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include "core/partitionnode.h"
|
#include "core/partitionnode.h"
|
||||||
|
|
||||||
#include <QList>
|
#include <QList>
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
class Partition;
|
class Partition;
|
||||||
class PartWidget;
|
class PartWidget;
|
||||||
|
@ -32,12 +33,13 @@ class QWidget;
|
||||||
/** @brief Base class for all widgets that need to position Partitions.
|
/** @brief Base class for all widgets that need to position Partitions.
|
||||||
@author vl@fidra.de
|
@author vl@fidra.de
|
||||||
*/
|
*/
|
||||||
class PartWidgetBase
|
class PartWidgetBase : public QWidget
|
||||||
{
|
{
|
||||||
|
Q_OBJECT
|
||||||
Q_DISABLE_COPY(PartWidgetBase)
|
Q_DISABLE_COPY(PartWidgetBase)
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PartWidgetBase() {}
|
PartWidgetBase(QWidget* parent) : QWidget(parent) {}
|
||||||
virtual ~PartWidgetBase() {}
|
virtual ~PartWidgetBase() {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue