examples/tools/treemodelcompleter/mainwindow.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
--- a/examples/tools/treemodelcompleter/mainwindow.cpp	Tue Jan 26 12:42:25 2010 +0200
+++ b/examples/tools/treemodelcompleter/mainwindow.cpp	Tue Feb 02 00:43:10 2010 +0200
@@ -52,8 +52,8 @@
     completer = new TreeModelCompleter(this);
     completer->setModel(modelFromFile(":/resources/treemodel.txt"));
     completer->setSeparator(QLatin1String("."));
-    QObject::connect(completer, SIGNAL(highlighted(const QModelIndex&)),
-                     this, SLOT(highlight(const QModelIndex&)));
+    QObject::connect(completer, SIGNAL(highlighted(QModelIndex)),
+                     this, SLOT(highlight(QModelIndex)));
 
     QWidget *centralWidget = new QWidget;
 
@@ -82,8 +82,8 @@
 
     QLineEdit *separatorLineEdit = new QLineEdit;
     separatorLineEdit->setText(completer->separator());
-    connect(separatorLineEdit, SIGNAL(textChanged(const QString&)),
-            completer, SLOT(setSeparator(const QString&)));
+    connect(separatorLineEdit, SIGNAL(textChanged(QString)),
+            completer, SLOT(setSeparator(QString)));
 
     QCheckBox *wrapCheckBox = new QCheckBox;
     wrapCheckBox->setText(tr("Wrap around completions"));
@@ -92,8 +92,8 @@
 
     contentsLabel = new QLabel;
     contentsLabel->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
-    connect(separatorLineEdit, SIGNAL(textChanged(const QString&)),
-            this, SLOT(updateContentsLabel(const QString&)));
+    connect(separatorLineEdit, SIGNAL(textChanged(QString)),
+            this, SLOT(updateContentsLabel(QString)));
 
     treeView = new QTreeView;
     treeView->setModel(completer->model());