Changeset View
Changeset View
Standalone View
Standalone View
autotests/tabbox/mock_tabboxhandler.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 90 | { | |||
---|---|---|---|---|---|
95 | for (; it != m_windows.constEnd(); ++it) { | 95 | for (; it != m_windows.constEnd(); ++it) { | ||
96 | if ((*it).data() == client) { | 96 | if ((*it).data() == client) { | ||
97 | return true; | 97 | return true; | ||
98 | } | 98 | } | ||
99 | } | 99 | } | ||
100 | return false; | 100 | return false; | ||
101 | } | 101 | } | ||
102 | 102 | | |||
103 | QWeakPointer< TabBox::TabBoxClient > MockTabBoxHandler::createMockWindow(const QString &caption, WId id) | 103 | QWeakPointer< TabBox::TabBoxClient > MockTabBoxHandler::createMockWindow(const QString &caption) | ||
104 | { | 104 | { | ||
105 | QSharedPointer< TabBox::TabBoxClient > client(new MockTabBoxClient(caption, id)); | 105 | QSharedPointer< TabBox::TabBoxClient > client(new MockTabBoxClient(caption)); | ||
106 | m_windows.append(client); | 106 | m_windows.append(client); | ||
107 | m_activeClient = client; | 107 | m_activeClient = client; | ||
108 | return QWeakPointer< TabBox::TabBoxClient >(client); | 108 | return QWeakPointer< TabBox::TabBoxClient >(client); | ||
109 | } | 109 | } | ||
110 | 110 | | |||
111 | void MockTabBoxHandler::closeWindow(TabBox::TabBoxClient *client) | 111 | void MockTabBoxHandler::closeWindow(TabBox::TabBoxClient *client) | ||
112 | { | 112 | { | ||
113 | QList< QSharedPointer< TabBox::TabBoxClient > >::iterator it = m_windows.begin(); | 113 | QList< QSharedPointer< TabBox::TabBoxClient > >::iterator it = m_windows.begin(); | ||
Show All 9 Lines |