class FormWindow::Selection 是什么意思??

luhuijk 2011-03-30 04:34:47
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();
};样啊!
...全文
31 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
luhuijk 2011-03-30
  • 打赏
  • 举报
回复
谢谢了,主要是在网上不知道输入什么关键字来查!
pengzhixi 2011-03-30
  • 打赏
  • 举报
回复
额 Selection是一个嵌套类,嵌套在FormWindow里面

33,311

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧