examples/mainwindows/dockwidgets/mainwindow.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   333                "buy more items, or should we return the excess to you?");
   333                "buy more items, or should we return the excess to you?");
   334     dock->setWidget(paragraphsList);
   334     dock->setWidget(paragraphsList);
   335     addDockWidget(Qt::RightDockWidgetArea, dock);
   335     addDockWidget(Qt::RightDockWidgetArea, dock);
   336     viewMenu->addAction(dock->toggleViewAction());
   336     viewMenu->addAction(dock->toggleViewAction());
   337 
   337 
   338     connect(customerList, SIGNAL(currentTextChanged(const QString &)),
   338     connect(customerList, SIGNAL(currentTextChanged(QString)),
   339             this, SLOT(insertCustomer(const QString &)));
   339             this, SLOT(insertCustomer(QString)));
   340     connect(paragraphsList, SIGNAL(currentTextChanged(const QString &)),
   340     connect(paragraphsList, SIGNAL(currentTextChanged(QString)),
   341             this, SLOT(addParagraph(const QString &)));
   341             this, SLOT(addParagraph(QString)));
   342 }
   342 }
   343 //! [9]
   343 //! [9]