class FormWindow::Selection 是什么意思??
class FormWindow::Selection
{
public:
Selection();
~Selection();
// Clear
void clear();
// Also clear out the pool. Call if reparenting of the main container occurs.
void clearSelectionPool();
void repaintSelection(QWidget *w);
void repaintSelection();
bool isWidgetSelected(QWidget *w) const;
QWidgetList selectedWidgets() const;
WidgetSelection *addWidget(FormWindow* fw, QWidget *w);
// remove widget, return new current widget or 0
QWidget* removeWidget(QWidget *w);
void raiseList(const QWidgetList& l);
void raiseWidget(QWidget *w);
void updateGeometry(QWidget *w);
void hide(QWidget *w);
void show(QWidget *w);
private:
typedef QList<WidgetSelection *> SelectionPool;
SelectionPool m_selectionPool;
typedef QHash<QWidget *, WidgetSelection *> SelectionHash;
SelectionHash m_usedSelections;
};
FormWindow::Selection::Selection()
{
}
class FormWindow::Selection{}这样是做什么?我们一般写一个类是
class A
{
public:
A();
~A();
};样啊!