summaryrefslogtreecommitdiff
path: root/client/macrowindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r--client/macrowindow.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc
index ddaf905..b0eab65 100644
--- a/client/macrowindow.cc
+++ b/client/macrowindow.cc
@@ -205,14 +205,26 @@ bool MacroWindow::isClosed()
Widget *MacroWindow::getWidget(QString name)
{
- QVector< Widget* >::iterator i=widgets.begin();
+ QVector< Widget* >::iterator i = widgets.begin();
while (i != widgets.end()) {
Widget* w = *i;
if(name == w->getName()) return w;
i++;
}
+
+ QVector< Widget* >::iterator j = auxwidgets.begin();
+ while (j != auxwidgets.end()) {
+ Widget* w = *j;
+ if(name == w->getName()) return w;
+ j++;
+ }
printf("WARNING: Widget %s not found\n", name.toStdString().c_str());
return NULL;
}
+
+void MacroWindow::addAuxWidgets(QVector< Widget* > ws)
+{
+ auxwidgets += ws;
+}