myTrackerView->setItemsExpandable (false);
myTrackerView->setAlternatingRowColors (true);
myTrackerView->setItemDelegate (myTrackerDelegate = new TrackerDelegate ());
- connect (myTrackerView->selectionModel (), SIGNAL (selectionChanged (const QItemSelection&, const QItemSelection&)), this, SLOT (onTrackerSelectionChanged ()));
+ connect (myTrackerView->selectionModel (), SIGNAL (selectionChanged (QItemSelection, QItemSelection)), this, SLOT (onTrackerSelectionChanged ()));
h->addWidget (myTrackerView, 1);
p = new QPushButton ();
{
myFileTreeView = new FileTreeView ();
- connect (myFileTreeView, SIGNAL ( priorityChanged (const QSet<int>&, int)),
- this, SLOT ( onFilePriorityChanged (const QSet<int>&, int)));
+ connect (myFileTreeView, SIGNAL ( priorityChanged (QSet<int>, int)),
+ this, SLOT ( onFilePriorityChanged (QSet<int>, int)));
- connect (myFileTreeView, SIGNAL ( wantedChanged (const QSet<int>&, bool)),
- this, SLOT ( onFileWantedChanged (const QSet<int>&, bool)));
+ connect (myFileTreeView, SIGNAL ( wantedChanged (QSet<int>, bool)),
+ this, SLOT ( onFileWantedChanged (QSet<int>, bool)));
- connect (myFileTreeView, SIGNAL (pathEdited (const QString&, const QString&)),
- this, SLOT (onPathEdited (const QString&, const QString&)));
+ connect (myFileTreeView, SIGNAL (pathEdited (QString, QString)),
+ this, SLOT (onPathEdited (QString, QString)));
- connect (myFileTreeView, SIGNAL (openRequested (const QString&)),
- this, SLOT (onOpenRequested (const QString&)));
+ connect (myFileTreeView, SIGNAL (openRequested (QString)),
+ this, SLOT (onOpenRequested (QString)));
return myFileTreeView;
}
#endif
}
- connect (this, SIGNAL(clicked(const QModelIndex&)),
- this, SLOT(onClicked(const QModelIndex&)));
+ connect (this, SIGNAL(clicked(QModelIndex)),
+ this, SLOT(onClicked(QModelIndex)));
- connect (this, SIGNAL(doubleClicked(const QModelIndex&)),
- this, SLOT(onDoubleClicked(const QModelIndex&)));
+ connect (this, SIGNAL(doubleClicked(QModelIndex)),
+ this, SLOT(onDoubleClicked(QModelIndex)));
- connect (&myModel, SIGNAL(priorityChanged(const QSet<int>&, int)),
- this, SIGNAL(priorityChanged(const QSet<int>&, int)));
+ connect (&myModel, SIGNAL(priorityChanged(QSet<int>, int)),
+ this, SIGNAL(priorityChanged(QSet<int>, int)));
- connect (&myModel, SIGNAL(wantedChanged(const QSet<int>&, bool)),
- this, SIGNAL(wantedChanged(const QSet<int>&, bool)));
+ connect (&myModel, SIGNAL(wantedChanged(QSet<int>, bool)),
+ this, SIGNAL(wantedChanged(QSet<int>, bool)));
- connect (&myModel, SIGNAL(pathEdited(const QString&, const QString&)),
- this, SIGNAL(pathEdited(const QString&, const QString&)));
+ connect (&myModel, SIGNAL(pathEdited(QString, QString)),
+ this, SIGNAL(pathEdited(QString, QString)));
- connect (&myModel, SIGNAL (openRequested (const QString&)),
- this, SLOT (onOpenRequested (const QString&)),
+ connect (&myModel, SIGNAL (openRequested (QString)),
+ this, SLOT (onOpenRequested (QString)),
Qt::QueuedConnection);
}
connect (&myPrefs, SIGNAL (changed (int)), this, SLOT (refreshPref (int)));
connect (myActivityCombo, SIGNAL (currentIndexChanged (int)), this, SLOT (onActivityIndexChanged (int)));
connect (myTrackerCombo, SIGNAL (currentIndexChanged (int)), this, SLOT (onTrackerIndexChanged (int)));
- connect (&myFilter, SIGNAL (rowsInserted (const QModelIndex&,int,int)), this, SLOT (refreshCountLabel ()));
- connect (&myFilter, SIGNAL (rowsRemoved (const QModelIndex&,int,int)), this, SLOT (refreshCountLabel ()));
+ connect (&myFilter, SIGNAL (rowsInserted (QModelIndex, int, int)), this, SLOT (refreshCountLabel ()));
+ connect (&myFilter, SIGNAL (rowsRemoved (QModelIndex, int, int)), this, SLOT (refreshCountLabel ()));
connect (&myTorrents, SIGNAL (modelReset ()), this, SLOT (onTorrentModelReset ()));
- connect (&myTorrents, SIGNAL (rowsInserted (const QModelIndex&,int,int)), this, SLOT (onTorrentModelRowsInserted (const QModelIndex&,int,int)));
- connect (&myTorrents, SIGNAL (rowsRemoved (const QModelIndex&,int,int)), this, SLOT (onTorrentModelRowsRemoved (const QModelIndex&,int,int)));
- connect (&myTorrents, SIGNAL (dataChanged (const QModelIndex&,const QModelIndex&)), this, SLOT (onTorrentModelDataChanged (const QModelIndex&,const QModelIndex&)));
+ connect (&myTorrents, SIGNAL (rowsInserted (QModelIndex, int, int)), this, SLOT (onTorrentModelRowsInserted (QModelIndex, int, int)));
+ connect (&myTorrents, SIGNAL (rowsRemoved (QModelIndex, int, int)), this, SLOT (onTorrentModelRowsRemoved (QModelIndex, int, int)));
+ connect (&myTorrents, SIGNAL (dataChanged (QModelIndex, QModelIndex)), this, SLOT (onTorrentModelDataChanged (QModelIndex, QModelIndex)));
connect (myRecountTimer, SIGNAL (timeout ()), this, SLOT (recount ()));
recountSoon ();
connect (&myTimer, SIGNAL(timeout()), this, SLOT(onTimer()));
- connect (&mySession, SIGNAL(executed(int64_t, const QString&, tr_variant *)),
- this, SLOT(onSessionExecuted(int64_t, const QString&, tr_variant *)));
+ connect (&mySession, SIGNAL(executed(int64_t, QString, tr_variant *)),
+ this, SLOT(onSessionExecuted(int64_t, QString, tr_variant *)));
setPath (path);
}
connect (ui.action_Properties, SIGNAL (triggered ()), this, SLOT (openProperties ()));
connect (ui.action_SessionDialog, SIGNAL (triggered ()), mySessionDialog, SLOT (show ()));
- connect (ui.listView, SIGNAL (activated (const QModelIndex&)), ui.action_Properties, SLOT (trigger ()));
+ connect (ui.listView, SIGNAL (activated (QModelIndex)), ui.action_Properties, SLOT (trigger ()));
// signals
connect (ui.action_SelectAll, SIGNAL (triggered ()), ui.listView, SLOT (selectAll ()));
connect (ui.action_DeselectAll, SIGNAL (triggered ()), ui.listView, SLOT (clearSelection ()));
- connect (&myFilterModel, SIGNAL (rowsInserted (const QModelIndex&,int,int)), this, SLOT (refreshActionSensitivitySoon ()));
- connect (&myFilterModel, SIGNAL (rowsRemoved (const QModelIndex&,int,int)), this, SLOT (refreshActionSensitivitySoon ()));
+ connect (&myFilterModel, SIGNAL (rowsInserted (QModelIndex, int, int)), this, SLOT (refreshActionSensitivitySoon ()));
+ connect (&myFilterModel, SIGNAL (rowsRemoved (QModelIndex, int, int)), this, SLOT (refreshActionSensitivitySoon ()));
connect (ui.action_Quit, SIGNAL (triggered ()), QCoreApplication::instance (), SLOT (quit ()));
// torrent view
myFilterModel.setSourceModel (&myModel);
connect (&myModel, SIGNAL (modelReset ()), this, SLOT (onModelReset ()));
- connect (&myModel, SIGNAL (rowsRemoved (const QModelIndex&,int,int)), this, SLOT (onModelReset ()));
- connect (&myModel, SIGNAL (rowsInserted (const QModelIndex&,int,int)), this, SLOT (onModelReset ()));
- connect (&myModel, SIGNAL (dataChanged (const QModelIndex&,const QModelIndex&)), this, SLOT (refreshTrayIconSoon ()));
+ connect (&myModel, SIGNAL (rowsRemoved (QModelIndex, int, int)), this, SLOT (onModelReset ()));
+ connect (&myModel, SIGNAL (rowsInserted (QModelIndex, int, int)), this, SLOT (onModelReset ()));
+ connect (&myModel, SIGNAL (dataChanged (QModelIndex, QModelIndex)), this, SLOT (refreshTrayIconSoon ()));
ui.listView->setModel (&myFilterModel);
- connect (ui.listView->selectionModel (), SIGNAL (selectionChanged (const QItemSelection&,const QItemSelection&)), this, SLOT (refreshActionSensitivitySoon ()));
+ connect (ui.listView->selectionModel (), SIGNAL (selectionChanged (QItemSelection, QItemSelection)), this, SLOT (refreshActionSensitivitySoon ()));
QActionGroup * actionGroup = new QActionGroup (this);
actionGroup->addAction (ui.action_SortByActivity);
connect (&mySession, SIGNAL (dataSendProgress ()), this, SLOT (dataSendProgress ()));
connect (&mySession, SIGNAL (httpAuthenticationRequired ()), this, SLOT (wrongAuthentication ()));
connect (&mySession, SIGNAL (error (QNetworkReply::NetworkError)), this, SLOT (onError (QNetworkReply::NetworkError)));
- connect (&mySession, SIGNAL (errorMessage (const QString)), this, SLOT (errorMessage(const QString)));
+ connect (&mySession, SIGNAL (errorMessage (QString)), this, SLOT (errorMessage(QString)));
if (mySession.isServer ())
{
}
l->addWidget (b, l->rowCount(), 0, 1, -1, Qt::AlignLeft);
- connect (d, SIGNAL (filesSelected (const QStringList&)),
- this, SLOT (addTorrents (const QStringList&)));
+ connect (d, SIGNAL (filesSelected (QStringList)),
+ this, SLOT (addTorrents (QStringList)));
d->show ();
}
QFileDialog * d = new QFileDialog (this, tr ("Select File"));
d->setFileMode (QFileDialog::ExistingFile);
d->setAttribute (Qt::WA_DeleteOnClose);
- connect (d, SIGNAL(filesSelected(const QStringList&)),
- this, SLOT(onFileSelected(const QStringList&)));
+ connect (d, SIGNAL(filesSelected(QStringList)),
+ this, SLOT(onFileSelected(QStringList)));
d->show ();
}
void
d->setFileMode (QFileDialog::Directory);
d->setOption (QFileDialog::ShowDirsOnly);
d->setAttribute (Qt::WA_DeleteOnClose);
- connect (d, SIGNAL(filesSelected(const QStringList&)),
- this, SLOT(onFolderSelected(const QStringList&)));
+ connect (d, SIGNAL(filesSelected(QStringList)),
+ this, SLOT(onFolderSelected(QStringList)));
d->show ();
}
d->setFileMode (QFileDialog::Directory);
d->setOption (QFileDialog::ShowDirsOnly);
d->setAttribute (Qt::WA_DeleteOnClose);
- connect (d, SIGNAL(filesSelected(const QStringList&)),
- this, SLOT(onDestinationSelected(const QStringList&)));
+ connect (d, SIGNAL(filesSelected(QStringList)),
+ this, SLOT(onDestinationSelected(QStringList)));
d->show ();
}
void
e->setText (downloadDir);
layout->addWidget (e, row, 1);
l->setBuddy (e);
- connect (e, SIGNAL (textEdited (const QString&)), this, SLOT (onDestinationEdited (const QString&)));
+ connect (e, SIGNAL (textEdited (QString)), this, SLOT (onDestinationEdited (QString)));
}
l = myFreespaceLabel;
layout->setColumnStretch (1, 2);
layout->setSpacing (HIG::PAD);
- connect (myTree, SIGNAL (priorityChanged (const QSet<int>&,int)), this, SLOT (onPriorityChanged (const QSet<int>&,int)));
- connect (myTree, SIGNAL (wantedChanged (const QSet<int>&,bool)), this, SLOT (onWantedChanged (const QSet<int>&,bool)));
+ connect (myTree, SIGNAL (priorityChanged (QSet<int>, int)), this, SLOT (onPriorityChanged (QSet<int>, int)));
+ connect (myTree, SIGNAL (wantedChanged (QSet<int>, bool)), this, SLOT (onWantedChanged (QSet<int>, bool)));
if (session.isLocal ())
connect (myVerifyButton, SIGNAL (clicked (bool)), this, SLOT (onVerify ()));
tr ("Torrent Files (*.torrent);;All Files (*.*)"));
d->setFileMode (QFileDialog::ExistingFile);
d->setAttribute (Qt::WA_DeleteOnClose);
- connect (d, SIGNAL (filesSelected (const QStringList&)), this, SLOT (onFilesSelected (const QStringList&)));
+ connect (d, SIGNAL (filesSelected (QStringList)), this, SLOT (onFilesSelected (QStringList)));
d->show ();
}
}
QFileDialog * d = new QFileDialog (this, tr ("Select Destination"), myLocalDestination.absolutePath ());
d->setFileMode (QFileDialog::Directory);
d->setAttribute (Qt::WA_DeleteOnClose);
- connect (d, SIGNAL (filesSelected (const QStringList&)), this, SLOT (onDestinationsSelected (const QStringList&)));
+ connect (d, SIGNAL (filesSelected (QStringList)), this, SLOT (onDestinationsSelected (QStringList)));
d->show ();
}
connect (&myPrefs, SIGNAL (changed (int)), this, SLOT (updatePref (int)));
- connect (this, SIGNAL (responseReceived (const QByteArray&)),
- this, SLOT (onResponseReceived (const QByteArray&)));
+ connect (this, SIGNAL (responseReceived (QByteArray)),
+ this, SLOT (onResponseReceived (QByteArray)));
}
Session::~Session ()
void dataReadProgress ();
void dataSendProgress ();
void error (QNetworkReply::NetworkError);
- void errorMessage (const QString);
+ void errorMessage (const QString&);
void httpAuthenticationRequired ();
private:
{
myWatcher = new QFileSystemWatcher ();
myWatcher->addPath( path );
- connect (myWatcher, SIGNAL(directoryChanged(const QString&)),
- this, SLOT(watcherActivated(const QString&)));
+ connect (myWatcher, SIGNAL(directoryChanged(QString)),
+ this, SLOT(watcherActivated(QString)));
//std::cerr << "watching " << qPrintable(path) << " for new .torrent files" << std::endl;
QTimer::singleShot (0, this, SLOT (rescanAllWatchedDirectories ())); // trigger the watchdir for .torrent files in there already
}