[gluon] /: Prefer to use normalised signal/slot signatures.
Laszlo Papp
ext-laszlo.papp at nokia.com
Tue Nov 8 21:27:45 UTC 2011
Git commit edd17c3bced4cc635993af730c7377b14197bae3 by Laszlo Papp.
Committed on 09/11/2011 at 00:26.
Pushed by lpapp into branch 'master'.
Prefer to use normalised signal/slot signatures.
CCMAIL: gluon at kde.org
That is, remove all dispensable whitespace, const-&, and top-level const. For
more info, see:
http://marcmutz.wordpress.com/effective-qt/prefer-to-use-normalised-signalslot-signatures
M +1 -1 audio/examples/playlist/main.cpp
M +1 -1 audio/phonon.cpp
M +4 -4 audio/player.cpp
M +2 -2 core/gluonobject.cpp
M +1 -1 creator/dialogs/configdialog.cpp
M +2 -2 creator/dialogs/newprojectdialogpage.cpp
M +2 -2 creator/dialogs/openprojectdialogpage.cpp
M +6 -6 creator/dialogs/projectselectiondialog.cpp
M +2 -2 creator/dialogs/recentprojectsdialogpage.cpp
M +3 -3 creator/lib/historymanager.cpp
M +35 -35 creator/lib/models/modeltest.cpp
M +1 -1 creator/lib/models/projectmodel.cpp
M +1 -1 creator/lib/models/scenemodel.cpp
M +2 -2 creator/lib/objectmanager.cpp
M +1 -1 creator/lib/widgets/enumpropertywidgetitem.cpp
M +6 -6 creator/lib/widgets/filearea.cpp
M +2 -2 creator/lib/widgets/gluonobjectpropertywidgetitem.cpp
M +11 -11 creator/lib/widgets/propertywidgetcontainer.cpp
M +1 -1 creator/lib/widgets/propertywidgetitemnewcustomproperty.cpp
M +24 -24 creator/mainwindow.cpp
M +2 -2 creator/nodeeditor/actions/AbstractAction.cpp
M +1 -1 creator/nodeeditor/actions/AddEdge.cpp
M +1 -1 creator/nodeeditor/actions/AddNode.cpp
M +2 -2 creator/nodeeditor/actions/AddTypedNode.cpp
M +1 -1 creator/nodeeditor/actions/AlignAction.cpp
M +1 -1 creator/nodeeditor/actions/MoveNode.cpp
M +4 -4 creator/nodeeditor/core/edge.cpp
M +4 -4 creator/nodeeditor/core/graph.cpp
M +2 -2 creator/nodeeditor/graphicsitem/NodeItem.cpp
M +2 -2 creator/nodeeditor/graphicsitem/OrientedEdgeItem.cpp
M +15 -15 creator/nodeeditor/interface/GraphPropertiesWidget.cpp
M +5 -5 creator/nodeeditor/interface/GraphScene.cpp
M +1 -1 creator/nodeeditor/interface/GraphVisualEditor.cpp
M +10 -10 creator/nodeeditor/interface/NodeEditor.cpp
M +24 -24 creator/nodeeditor/interface/NodePropertiesWidget.cpp
M +12 -12 creator/nodeeditor/interface/edgepropertieswidget.cpp
M +24 -24 creator/plugins/docks/distributiondock/distributiondock.cpp
M +5 -5 creator/plugins/docks/messagedock/messagedock.cpp
M +12 -12 creator/plugins/docks/projectdock/projectdock.cpp
M +3 -3 creator/plugins/docks/propertiesdock/propertiesdock.cpp
M +1 -1 creator/plugins/docks/propertiesdock/propertywidgetitems/boolpropertywidgetitem.cpp
M +1 -1 creator/plugins/docks/propertiesdock/propertywidgetitems/colorpropertywidgetitem.cpp
M +1 -1 creator/plugins/docks/propertiesdock/propertywidgetitems/floatpropertywidgetitem.cpp
M +2 -2 creator/plugins/docks/propertiesdock/propertywidgetitems/intpropertywidgetitem.cpp
M +3 -3 creator/plugins/docks/propertiesdock/propertywidgetitems/intvectorpropertywidgetitem.cpp
M +1 -1 creator/plugins/docks/propertiesdock/propertywidgetitems/qfontpropertywidgetitem.cpp
M +1 -1 creator/plugins/docks/propertiesdock/propertywidgetitems/qrealpropertywidgetitem.cpp
M +2 -2 creator/plugins/docks/propertiesdock/propertywidgetitems/qsizefpropertywidgetitem.cpp
M +4 -4 creator/plugins/docks/propertiesdock/propertywidgetitems/quaternionpropertywidgetitem.cpp
M +1 -1 creator/plugins/docks/propertiesdock/propertywidgetitems/qurlpropertywidgetitem.cpp
M +3 -3 creator/plugins/docks/propertiesdock/propertywidgetitems/stringlistpropertywidgetitem.cpp
M +1 -1 creator/plugins/docks/propertiesdock/propertywidgetitems/textpropertywidgetitem.cpp
M +4 -4 creator/plugins/docks/propertiesdock/propertywidgetitems/vectorpropertywidgetitem.cpp
M +6 -6 creator/plugins/docks/scenedock/scenedock.cpp
M +14 -14 creator/plugins/kparts/gluoneditorpart/gluoneditorpart.cpp
M +9 -9 creator/plugins/kparts/gluonviewerpart/gluonviewerpart.cpp
M +12 -12 creator/plugins/tools/vcs/vcstool.cpp
M +6 -6 creator/plugins/tools/vcs/widgets/vcscommitdialog.cpp
M +1 -1 creator/plugins/tools/vcs/widgets/vcsdiffwidget.cpp
M +12 -12 creator/plugins/tools/vcs/widgets/vcslogwidget.cpp
M +1 -1 engine/abstractstatistic.cpp
M +1 -1 engine/assets/graphics/material/materialasset.cpp
M +13 -13 engine/components/graphics/uimanager/renderablescene.cpp
M +3 -3 engine/components/graphics/uimanager/uimanagercomponent.cpp
M +2 -2 engine/components/other/spherecollision/spherecollisioncomponent.cpp
M +2 -2 engine/components/scripting/scriptingcomponent.cpp
M +4 -4 engine/game.cpp
M +2 -2 engine/gameproject.cpp
M +7 -7 engine/prefabinstance.cpp
M +7 -7 engine/prefabinstancechild.cpp
M +1 -1 engine/scene.cpp
M +2 -2 graphics/engine.cpp
M +1 -1 graphics/examples/basic/main.cpp
M +1 -1 graphics/examples/filemesh/main.cpp
M +1 -1 graphics/examples/loadtexture/main.cpp
M +1 -1 graphics/materialinstance.cpp
M +6 -6 input/custominput.cpp
M +1 -1 input/examples/devicesloop/gameloop.cpp
M +1 -1 input/examples/keyboardloop/gameloop.cpp
M +5 -5 input/examples/qteventfilter/mainwindow.cpp
M +1 -1 input/inputdevice.cpp
M +1 -1 input/joystick.cpp
M +1 -1 input/mouse.cpp
M +1 -1 player/desktop/delegates/commentitemsviewdelegate.cpp
M +3 -3 player/desktop/delegates/itemsviewdelegate.cpp
M +6 -6 player/desktop/gamedetailsoverlay.cpp
M +5 -5 player/desktop/gamesoverlay.cpp
M +5 -5 player/desktop/loginform.cpp
M +20 -20 player/desktop/mainwindow.cpp
M +2 -2 player/desktop/views/newcommentform.cpp
M +6 -6 player/fremantle/gamewindowmanager.cpp
M +1 -1 player/lib/abstractjob.cpp
M +1 -1 player/lib/abstractsocialservicesjob.cpp
M +1 -1 player/lib/addgamejob.cpp
M +3 -3 player/lib/atticamanager.cpp
M +1 -1 player/lib/categorylistjob.cpp
M +1 -1 player/lib/commentslistjob.cpp
M +1 -1 player/lib/commentuploadjob.cpp
M +14 -14 player/lib/editgamejob.cpp
M +1 -1 player/lib/gamedetaillistjob.cpp
M +1 -1 player/lib/gamedetailsjob.cpp
M +3 -3 player/lib/gamedownloadjob.cpp
M +1 -1 player/lib/gameuploadjob.cpp
M +1 -1 player/lib/licensejob.cpp
M +5 -5 player/lib/models/allgameitemsmodel.cpp
M +3 -3 player/lib/models/commentitemsmodel.cpp
M +1 -1 player/lib/ratingjob.cpp
M +5 -5 player/lib/serviceprovider.cpp
M +1 -1 player/plasmoid/gamedetailsoverlay.cpp
M +2 -2 player/plasmoid/gamesoverlay.cpp
M +1 -1 player/plasmoid/loginform.cpp
M +4 -4 player/plasmoid/plasmaapplet.cpp
M +6 -6 player/plasmoid/views/commentsview.cpp
M +1 -1 player/plasmoid/views/commentsviewitem.cpp
M +2 -2 player/plasmoid/views/gamesview.cpp
M +2 -2 player/plasmoid/views/gamesviewitem.cpp
M +2 -2 player/plasmoid/views/newcommentform.cpp
M +2 -2 smarts/editor/bteditor.cpp
M +4 -4 smarts/editor/bteditornodetype.cpp
M +2 -2 smarts/editor/btpropertywidgetitem.cpp
M +21 -21 smarts/editor/modeltest.cpp
M +1 -1 tools/viewer/main.cpp
M +1 -1 tools/winviewer/main.cpp
http://commits.kde.org/gluon/edd17c3bced4cc635993af730c7377b14197bae3
diff --git a/audio/examples/playlist/main.cpp b/audio/examples/playlist/main.cpp
index 2fef049..339afd4 100644
--- a/audio/examples/playlist/main.cpp
+++ b/audio/examples/playlist/main.cpp
@@ -32,7 +32,7 @@ int main( int argc, char* argv[] )
player->setVolume( 0.9 ); //between 0 and 1
// qDebug() << "Playing sound "<< player->currentDuration() << "seconds.";
- QObject::connect( player, SIGNAL( finished() ), &app, SLOT( quit() ) );
+ QObject::connect( player, SIGNAL(finished()), &app, SLOT(quit()) );
player->play();
app.exec();
diff --git a/audio/phonon.cpp b/audio/phonon.cpp
index b2ec352..af2439a 100644
--- a/audio/phonon.cpp
+++ b/audio/phonon.cpp
@@ -87,7 +87,7 @@ bool KALPhonon::setCategory( Phonon::Category category )
}
d->category = category;
- connect( d->phononOutput, SIGNAL( outputDeviceChanged( Phonon::AudioOutputDevice ) ), this, SLOT( setDevice( Phonon::AudioOutputDevice ) ) );
+ connect( d->phononOutput, SIGNAL(outputDeviceChanged(Phonon::AudioOutputDevice)), this, SLOT(setDevice(Phonon::AudioOutputDevice)) );
return true;
}
diff --git a/audio/player.cpp b/audio/player.cpp
index f5a535b..e6282c4 100644
--- a/audio/player.cpp
+++ b/audio/player.cpp
@@ -51,8 +51,8 @@ Player::Player(QObject* parent)
: QObject(parent)
, d( new PlayerPrivate )
{
- connect(d->sound, SIGNAL( paused() ), SLOT( playNext() ) );
- connect(d->sound, SIGNAL( stopped() ), SLOT( playNext() ) );
+ connect(d->sound, SIGNAL(paused()), SLOT(playNext()) );
+ connect(d->sound, SIGNAL(stopped()), SLOT(playNext()) );
}
Player::Player( QStringList files, QObject* parent )
@@ -61,8 +61,8 @@ Player::Player( QStringList files, QObject* parent )
{
d->files = files;
- connect(d->sound, SIGNAL( paused() ), SLOT( playNext() ) );
- connect(d->sound, SIGNAL( stopped() ), SLOT( playNext() ) );
+ connect(d->sound, SIGNAL(paused()), SLOT(playNext()) );
+ connect(d->sound, SIGNAL(stopped()), SLOT(playNext()) );
}
Player::~Player()
diff --git a/core/gluonobject.cpp b/core/gluonobject.cpp
index 7d23c8b..b688dae 100644
--- a/core/gluonobject.cpp
+++ b/core/gluonobject.cpp
@@ -419,14 +419,14 @@ void GluonObject::addChild( GluonObject* child )
if( parent )
{
parent->removeChild( child );
- disconnect( child, SIGNAL( showDebug( const QString& ) ), parent, SIGNAL( showDebug( const QString& ) ) );
+ disconnect( child, SIGNAL(showDebug(QString)), parent, SIGNAL(showDebug(QString)) );
}
child->setParent( this );
//Make sure to update the child's name to avoid name conflicts.
child->setName( child->name() );
- connect( child, SIGNAL( showDebug( const QString& ) ), SIGNAL( showDebug( const QString& ) ) );
+ connect( child, SIGNAL(showDebug(QString)), SIGNAL(showDebug(QString)) );
}
GluonObject* GluonObject::child( int index ) const
diff --git a/creator/dialogs/configdialog.cpp b/creator/dialogs/configdialog.cpp
index 93aaae8..cc0b570 100644
--- a/creator/dialogs/configdialog.cpp
+++ b/creator/dialogs/configdialog.cpp
@@ -35,7 +35,7 @@ ConfigDialog::ConfigDialog( QWidget* parent, const QString& name, KConfigSkeleto
m_plugins->addPlugins( plugins, KPluginSelector::ReadConfigFile, i18n( "Others" ), QString() );
addPage( m_plugins, i18n( "Plugins" ), "gluon" );
- connect( m_plugins, SIGNAL( changed( bool ) ), SLOT( enableButtonApply( bool ) ) );
+ connect( m_plugins, SIGNAL(changed(bool)), SLOT(enableButtonApply(bool)) );
}
ConfigDialog::~ConfigDialog()
diff --git a/creator/dialogs/newprojectdialogpage.cpp b/creator/dialogs/newprojectdialogpage.cpp
index 19632f3..140a613 100644
--- a/creator/dialogs/newprojectdialogpage.cpp
+++ b/creator/dialogs/newprojectdialogpage.cpp
@@ -94,8 +94,8 @@ NewProjectDialogPage::NewProjectDialogPage()
d->locationValidLabel = new KSqueezedTextLabel( box );
boxLayout->addRow( QString(), d->locationValidLabel );
- connect( d->name, SIGNAL( textEdited( const QString& ) ), SLOT( validateByProjectName() ) );
- connect( d->location->lineEdit(), SIGNAL( textEdited( const QString& ) ), SLOT( validateByProjectLocation() ) );
+ connect( d->name, SIGNAL(textEdited(QString)), SLOT(validateByProjectName()) );
+ connect( d->location->lineEdit(), SIGNAL(textEdited(QString)), SLOT(validateByProjectLocation()) );
validateData();
}
diff --git a/creator/dialogs/openprojectdialogpage.cpp b/creator/dialogs/openprojectdialogpage.cpp
index e681d4c..203d2f2 100644
--- a/creator/dialogs/openprojectdialogpage.cpp
+++ b/creator/dialogs/openprojectdialogpage.cpp
@@ -60,8 +60,8 @@ OpenProjectDialogPage::OpenProjectDialogPage()
setIcon( KIcon( "document-open" ) );
d->fileWidget = new KFileWidget( KUrl( "kfiledialog:///OpenDialog" ), widget() );
- connect( d->fileWidget, SIGNAL( fileHighlighted( KUrl ) ),
- SLOT( projectSelected( KUrl ) ) );
+ connect( d->fileWidget, SIGNAL(fileHighlighted(KUrl)),
+ SLOT(projectSelected(KUrl)) );
d->fileWidget->setOperationMode( KFileWidget::Opening );
d->fileWidget->setFilter( QString( "*%1|Gluon Project Files" ).arg( GluonEngine::projectFilename ) );
diff --git a/creator/dialogs/projectselectiondialog.cpp b/creator/dialogs/projectselectiondialog.cpp
index 67497ed..862ca33 100644
--- a/creator/dialogs/projectselectiondialog.cpp
+++ b/creator/dialogs/projectselectiondialog.cpp
@@ -84,8 +84,8 @@ ProjectSelectionDialog::ProjectSelectionDialog( QWidget* parent, Qt::WFlags flag
restoreDialogSize( KGlobal::config()->group( "ProjectSelectionDialog" ) );
- connect( npdp, SIGNAL( validationFinished( bool ) ), SLOT( enableButtonOk( bool ) ) );
- connect( this, SIGNAL( okClicked() ), SLOT( okClicked() ) );
+ connect( npdp, SIGNAL(validationFinished(bool)), SLOT(enableButtonOk(bool)) );
+ connect( this, SIGNAL(okClicked()), SLOT(okClicked()) );
}
ProjectSelectionDialog::~ProjectSelectionDialog()
@@ -106,14 +106,14 @@ void ProjectSelectionDialog::addPage( KPageWidgetItem* item, ProjectSelectionDia
case OpenProjectPage:
{
DEBUG_TEXT( "Open" )
- connect( item, SIGNAL( projectRequested( QString ) ),
- SLOT( projectRequested( QString ) ) );
+ connect( item, SIGNAL(projectRequested(QString)),
+ SLOT(projectRequested(QString)) );
break;
}
case RecentProjectPage:
DEBUG_TEXT( "Recent" )
- connect( item, SIGNAL( projectRequested( QString ) ),
- SLOT( projectRequested( QString ) ) );
+ connect( item, SIGNAL(projectRequested(QString)),
+ SLOT(projectRequested(QString)) );
break;
default:
DEBUG_TEXT( "Unknown Project Page" )
diff --git a/creator/dialogs/recentprojectsdialogpage.cpp b/creator/dialogs/recentprojectsdialogpage.cpp
index 07e1cc3..ef6a222 100644
--- a/creator/dialogs/recentprojectsdialogpage.cpp
+++ b/creator/dialogs/recentprojectsdialogpage.cpp
@@ -60,8 +60,8 @@ RecentProjectsDialogPage::RecentProjectsDialogPage()
setIcon( KIcon( "document-open-recent" ) );
d->widget = new QListWidget( widget() );
- connect( d->widget, SIGNAL( doubleClicked( QModelIndex ) ),
- SLOT( projectDoubleClicked( QModelIndex ) ) );
+ connect( d->widget, SIGNAL(doubleClicked(QModelIndex)),
+ SLOT(projectDoubleClicked(QModelIndex)) );
QVBoxLayout* layout = new QVBoxLayout( widget() );
widget()->setLayout( layout );
diff --git a/creator/lib/historymanager.cpp b/creator/lib/historymanager.cpp
index b515225..548216c 100644
--- a/creator/lib/historymanager.cpp
+++ b/creator/lib/historymanager.cpp
@@ -73,9 +73,9 @@ void HistoryManager::setClean()
HistoryManager::HistoryManager( QObject* parent )
: GluonCore::Singleton< GluonCreator::HistoryManager >( parent ), d( new HistoryManagerPrivate )
{
- connect( d->stack, SIGNAL( canRedoChanged( bool ) ), SIGNAL( canRedoChanged( bool ) ) );
- connect( d->stack, SIGNAL( canUndoChanged( bool ) ), SIGNAL( canUndoChanged( bool ) ) );
- connect( d->stack, SIGNAL( cleanChanged( bool ) ), SIGNAL( cleanChanged( bool ) ) );
+ connect( d->stack, SIGNAL(canRedoChanged(bool)), SIGNAL(canRedoChanged(bool)) );
+ connect( d->stack, SIGNAL(canUndoChanged(bool)), SIGNAL(canUndoChanged(bool)) );
+ connect( d->stack, SIGNAL(cleanChanged(bool)), SIGNAL(cleanChanged(bool)) );
}
HistoryManager::~HistoryManager()
diff --git a/creator/lib/models/modeltest.cpp b/creator/lib/models/modeltest.cpp
index 9d56b47..7551303 100644
--- a/creator/lib/models/modeltest.cpp
+++ b/creator/lib/models/modeltest.cpp
@@ -30,44 +30,44 @@ ModelTest::ModelTest( QAbstractItemModel* _model, QObject* parent ) : QObject( p
{
Q_ASSERT( model );
- connect( model, SIGNAL( columnsAboutToBeInserted( const QModelIndex&, int, int ) ),
- SLOT( runAllTests() ) );
- connect( model, SIGNAL( columnsAboutToBeRemoved( const QModelIndex&, int, int ) ),
- SLOT( runAllTests() ) );
- connect( model, SIGNAL( columnsInserted( const QModelIndex&, int, int ) ),
- SLOT( runAllTests() ) );
- connect( model, SIGNAL( columnsRemoved( const QModelIndex&, int, int ) ),
- SLOT( runAllTests() ) );
- connect( model, SIGNAL( dataChanged( const QModelIndex&, const QModelIndex& ) ),
- SLOT( runAllTests() ) );
- connect( model, SIGNAL( headerDataChanged( Qt::Orientation, int, int ) ),
- SLOT( runAllTests() ) );
- connect( model, SIGNAL( layoutAboutToBeChanged() ), SLOT( runAllTests() ) );
- connect( model, SIGNAL( layoutChanged() ), SLOT( runAllTests() ) );
- connect( model, SIGNAL( modelReset() ), SLOT( runAllTests() ) );
- connect( model, SIGNAL( rowsAboutToBeInserted( const QModelIndex&, int, int ) ),
- SLOT( runAllTests() ) );
- connect( model, SIGNAL( rowsAboutToBeRemoved( const QModelIndex&, int, int ) ),
- SLOT( runAllTests() ) );
- connect( model, SIGNAL( rowsInserted( const QModelIndex&, int, int ) ),
- SLOT( runAllTests() ) );
- connect( model, SIGNAL( rowsRemoved( const QModelIndex&, int, int ) ),
- SLOT( runAllTests() ) );
+ connect( model, SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)),
+ SLOT(runAllTests()) );
+ connect( model, SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)),
+ SLOT(runAllTests()) );
+ connect( model, SIGNAL(columnsInserted(QModelIndex,int,int)),
+ SLOT(runAllTests()) );
+ connect( model, SIGNAL(columnsRemoved(QModelIndex,int,int)),
+ SLOT(runAllTests()) );
+ connect( model, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
+ SLOT(runAllTests()) );
+ connect( model, SIGNAL(headerDataChanged(Qt::Orientation,int,int)),
+ SLOT(runAllTests()) );
+ connect( model, SIGNAL(layoutAboutToBeChanged()), SLOT(runAllTests()) );
+ connect( model, SIGNAL(layoutChanged()), SLOT(runAllTests()) );
+ connect( model, SIGNAL(modelReset()), SLOT(runAllTests()) );
+ connect( model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
+ SLOT(runAllTests()) );
+ connect( model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
+ SLOT(runAllTests()) );
+ connect( model, SIGNAL(rowsInserted(QModelIndex,int,int)),
+ SLOT(runAllTests()) );
+ connect( model, SIGNAL(rowsRemoved(QModelIndex,int,int)),
+ SLOT(runAllTests()) );
// Special checks for inserting/removing
- connect( model, SIGNAL( layoutAboutToBeChanged() ),
- SLOT( layoutAboutToBeChanged() ) );
- connect( model, SIGNAL( layoutChanged() ),
- SLOT( layoutChanged() ) );
-
- connect( model, SIGNAL( rowsAboutToBeInserted( const QModelIndex&, int, int ) ),
- SLOT( rowsAboutToBeInserted( const QModelIndex&, int, int ) ) );
- connect( model, SIGNAL( rowsAboutToBeRemoved( const QModelIndex&, int, int ) ),
- SLOT( rowsAboutToBeRemoved( const QModelIndex&, int, int ) ) );
- connect( model, SIGNAL( rowsInserted( const QModelIndex&, int, int ) ),
- SLOT( rowsInserted( const QModelIndex&, int, int ) ) );
- connect( model, SIGNAL( rowsRemoved( const QModelIndex&, int, int ) ),
- SLOT( rowsRemoved( const QModelIndex&, int, int ) ) );
+ connect( model, SIGNAL(layoutAboutToBeChanged()),
+ SLOT(layoutAboutToBeChanged()) );
+ connect( model, SIGNAL(layoutChanged()),
+ SLOT(layoutChanged()) );
+
+ connect( model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
+ SLOT(rowsAboutToBeInserted(QModelIndex,int,int)) );
+ connect( model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
+ SLOT(rowsAboutToBeRemoved(QModelIndex,int,int)) );
+ connect( model, SIGNAL(rowsInserted(QModelIndex,int,int)),
+ SLOT(rowsInserted(QModelIndex,int,int)) );
+ connect( model, SIGNAL(rowsRemoved(QModelIndex,int,int)),
+ SLOT(rowsRemoved(QModelIndex,int,int)) );
runAllTests();
}
diff --git a/creator/lib/models/projectmodel.cpp b/creator/lib/models/projectmodel.cpp
index 007581c..f11ec9f 100644
--- a/creator/lib/models/projectmodel.cpp
+++ b/creator/lib/models/projectmodel.cpp
@@ -62,7 +62,7 @@ class ProjectModel::ProjectModelPrivate
ProjectModel::ProjectModel( QObject* parent ): QAbstractItemModel( parent ), d( new ProjectModelPrivate )
{
- connect( HistoryManager::instance(), SIGNAL( historyChanged( const QUndoCommand* ) ), SIGNAL( layoutChanged() ) );
+ connect( HistoryManager::instance(), SIGNAL(historyChanged(const QUndoCommand*)), SIGNAL(layoutChanged()) );
//new ModelTest(this, this);
}
diff --git a/creator/lib/models/scenemodel.cpp b/creator/lib/models/scenemodel.cpp
index 5333006..439cfb0 100644
--- a/creator/lib/models/scenemodel.cpp
+++ b/creator/lib/models/scenemodel.cpp
@@ -52,7 +52,7 @@ class SceneModel::SceneModelPrivate
SceneModel::SceneModel( QObject* parent ): QAbstractItemModel( parent ), d( new SceneModelPrivate )
{
setSupportedDragActions( Qt::MoveAction );
- connect( HistoryManager::instance(), SIGNAL( historyChanged( const QUndoCommand* ) ), SIGNAL( layoutChanged() ) );
+ connect( HistoryManager::instance(), SIGNAL(historyChanged(const QUndoCommand*)), SIGNAL(layoutChanged()) );
// new ModelTest(this, this);
}
diff --git a/creator/lib/objectmanager.cpp b/creator/lib/objectmanager.cpp
index 7eaa7ae..09b7bf8 100644
--- a/creator/lib/objectmanager.cpp
+++ b/creator/lib/objectmanager.cpp
@@ -313,8 +313,8 @@ void ObjectManager::assetDeleted( GluonEngine::Asset* asset )
ObjectManager::ObjectManager( QObject* parent )
: GluonCore::Singleton< GluonCreator::ObjectManager >( parent ), d( new Private() )
{
- connect( KDirWatch::self(), SIGNAL( dirty( const QString& ) ), SLOT( assetDirty( const QString& ) ) );
- connect( KDirWatch::self(), SIGNAL( created( const QString& ) ), SLOT( assetDirty( const QString& ) ) );
+ connect( KDirWatch::self(), SIGNAL(dirty(QString)), SLOT(assetDirty(QString)) );
+ connect( KDirWatch::self(), SIGNAL(created(QString)), SLOT(assetDirty(QString)) );
}
ObjectManager::~ObjectManager()
diff --git a/creator/lib/widgets/enumpropertywidgetitem.cpp b/creator/lib/widgets/enumpropertywidgetitem.cpp
index 4ffdb99..a2f3d82 100644
--- a/creator/lib/widgets/enumpropertywidgetitem.cpp
+++ b/creator/lib/widgets/enumpropertywidgetitem.cpp
@@ -130,7 +130,7 @@ EnumPropertyWidgetItem::setEditObject( QObject* editThis )
GluonCreator::PropertyWidgetItem::setEditObject( editThis );
d->editObject = editThis;
d->setupComboBox();
- connect( d->comboBox, SIGNAL( currentIndexChanged( int ) ), SLOT( indexChanged( int ) ) );
+ connect( d->comboBox, SIGNAL(currentIndexChanged(int)), SLOT(indexChanged(int)) );
}
void
diff --git a/creator/lib/widgets/filearea.cpp b/creator/lib/widgets/filearea.cpp
index f5cc842..06202a9 100644
--- a/creator/lib/widgets/filearea.cpp
+++ b/creator/lib/widgets/filearea.cpp
@@ -72,9 +72,9 @@ FileArea::FileArea( QWidget* parent, Qt::WindowFlags f )
d->tabBar->setExpanding( false );
d->tabBar->setSelectionBehaviorOnRemove( QTabBar::SelectPreviousTab );
- connect( d->tabBar, SIGNAL( tabCloseRequested( int ) ), SLOT( tabCloseRequested( int ) ) );
- connect( d->tabBar, SIGNAL( currentChanged( int ) ), SLOT( setActiveTab( int ) ) );
- connect( d->tabBar, SIGNAL( tabMoved( int, int ) ), SLOT( tabMoved( int, int ) ) );
+ connect( d->tabBar, SIGNAL(tabCloseRequested(int)), SLOT(tabCloseRequested(int)) );
+ connect( d->tabBar, SIGNAL(currentChanged(int)), SLOT(setActiveTab(int)) );
+ connect( d->tabBar, SIGNAL(tabMoved(int,int)), SLOT(tabMoved(int,int)) );
d->toolBar = new KToolBar( "mainToolBar", this );
d->layout->addWidget( d->toolBar );
@@ -83,9 +83,9 @@ FileArea::FileArea( QWidget* parent, Qt::WindowFlags f )
setLayout( d->layout );
- connect( FileManager::instance(), SIGNAL( newPart( QString, QString, QString ) ), SLOT( addTab( QString, QString, QString ) ) );
- connect( FileManager::instance()->partManager(), SIGNAL( activePartChanged( KParts::Part* ) ), SLOT( activePartChanged( KParts::Part* ) ) );
- connect( FileManager::instance(), SIGNAL( fileClosed( QString ) ), SLOT( removeTab( QString ) ) );
+ connect( FileManager::instance(), SIGNAL(newPart(QString,QString,QString)), SLOT(addTab(QString,QString,QString)) );
+ connect( FileManager::instance()->partManager(), SIGNAL(activePartChanged(KParts::Part*)), SLOT(activePartChanged(KParts::Part*)) );
+ connect( FileManager::instance(), SIGNAL(fileClosed(QString)), SLOT(removeTab(QString)) );
}
FileArea::~FileArea()
diff --git a/creator/lib/widgets/gluonobjectpropertywidgetitem.cpp b/creator/lib/widgets/gluonobjectpropertywidgetitem.cpp
index b7e65df..a53ca3c 100644
--- a/creator/lib/widgets/gluonobjectpropertywidgetitem.cpp
+++ b/creator/lib/widgets/gluonobjectpropertywidgetitem.cpp
@@ -84,14 +84,14 @@ GluonObjectPropertyWidgetItem::GluonObjectPropertyWidgetItem( const QString& typ
d->currentValue = new QPushButton( this );
d->currentValue->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum );
base->addWidget( d->currentValue );
- connect( d->currentValue, SIGNAL( clicked( bool ) ), SLOT( browseForItems() ) );
+ connect( d->currentValue, SIGNAL(clicked(bool)), SLOT(browseForItems()) );
d->editButton = new QToolButton( this );
d->editButton->setIcon( KIcon( "document-edit" ) );
d->editButton->setText( i18nc( "Edit/preview currently selected object", "Edit" ) );
d->editButton->setToolTip( i18n( "Edit/preview currently selected object" ) );
base->addWidget( d->editButton );
- connect( d->editButton, SIGNAL( clicked( bool ) ), SLOT( openInEditor() ) );
+ connect( d->editButton, SIGNAL(clicked(bool)), SLOT(openInEditor()) );
QWidget* local = new QWidget( parent );
local->setLayout( base );
diff --git a/creator/lib/widgets/propertywidgetcontainer.cpp b/creator/lib/widgets/propertywidgetcontainer.cpp
index 5b02bd4..e6c2d41 100644
--- a/creator/lib/widgets/propertywidgetcontainer.cpp
+++ b/creator/lib/widgets/propertywidgetcontainer.cpp
@@ -84,13 +84,13 @@ namespace GluonCreator
expander = new QToolButton( titleWidget );
expander->setAutoRaise( true );
expander->setArrowType( Qt::DownArrow );
- connect( expander, SIGNAL( clicked( bool ) ), parent, SLOT( toggleExpanded() ) );
+ connect( expander, SIGNAL(clicked(bool)), parent, SLOT(toggleExpanded()) );
titleLayout->addWidget( expander );
enabler = new QCheckBox( titleWidget );
enabler->setText( title );
enabler->setChecked( enabled );
- connect( enabler, SIGNAL( toggled( bool ) ), parent, SLOT( setEnabled( bool ) ) );
+ connect( enabler, SIGNAL(toggled(bool)), parent, SLOT(setEnabled(bool)) );
titleLayout->addWidget( enabler );
menuButton = new QToolButton( titleWidget );
@@ -170,9 +170,9 @@ PropertyWidgetContainer::~PropertyWidgetContainer()
void PropertyWidgetContainer::setObject( GluonCore::GluonObject* theObject )
{
if( d->object )
- disconnect( d->object, SIGNAL( destroyed( QObject* ) ), this, SLOT( objectDeleted( QObject* ) ) );
+ disconnect( d->object, SIGNAL(destroyed(QObject*)), this, SLOT(objectDeleted(QObject*)) );
d->object = theObject;
- connect( d->object, SIGNAL( destroyed( QObject* ) ), SLOT( objectDeleted( QObject* ) ) );
+ connect( d->object, SIGNAL(destroyed(QObject*)), SLOT(objectDeleted(QObject*)) );
QString classname( theObject->metaObject()->className() );
classname = classname.right( classname.length() - classname.lastIndexOf( ':' ) - 1 );
@@ -182,7 +182,7 @@ void PropertyWidgetContainer::setObject( GluonCore::GluonObject* theObject )
setEnabled( theObject->property( "enabled" ).value<bool>() );
if( !theObject->property( "expanded" ).isNull() )
setExpanded( theObject->property( "expanded" ).value<bool>() );
- connect( this, SIGNAL( propertyChanged( QObject*, QString, QVariant, QVariant ) ), parentWidget(), SIGNAL( propertyChanged( QObject*, QString, QVariant, QVariant ) ) );
+ connect( this, SIGNAL(propertyChanged(QObject*,QString,QVariant,QVariant)), parentWidget(), SIGNAL(propertyChanged(QObject*,QString,QVariant,QVariant)) );
// Create a set of Prefab controls if we're editing a Prefab instance (or one of its children)
if( qobject_cast<GluonEngine::PrefabInstance*>( theObject ) || qobject_cast<GluonEngine::PrefabInstanceChild*>( theObject ) )
@@ -213,7 +213,7 @@ void PropertyWidgetContainer::setObject( GluonCore::GluonObject* theObject )
// Set up us the menu...
QAction* customPropAction = new QAction( this );
customPropAction->setText( i18n( "Add Custom Property..." ) );
- connect( customPropAction, SIGNAL( triggered( bool ) ), this, SLOT( addPropertyTriggered() ) );
+ connect( customPropAction, SIGNAL(triggered(bool)), this, SLOT(addPropertyTriggered()) );
d->menu->addAction( customPropAction );
d->menu->addSeparator();
if( classname != QString( "GameObject" ) )
@@ -221,11 +221,11 @@ void PropertyWidgetContainer::setObject( GluonCore::GluonObject* theObject )
// Don't show moving up and down stuff for the GameObject
QAction* upAction = new QAction( this );
upAction->setText( i18n( "Move Up" ) );
- connect( upAction, SIGNAL( triggered( bool ) ), this, SLOT( upTriggered() ) );
+ connect( upAction, SIGNAL(triggered(bool)), this, SLOT(upTriggered()) );
d->menu->addAction( upAction );
QAction* downAction = new QAction( this );
downAction->setText( i18n( "Move Down" ) );
- connect( downAction, SIGNAL( triggered( bool ) ), this, SLOT( downTriggered() ) );
+ connect( downAction, SIGNAL(triggered(bool)), this, SLOT(downTriggered()) );
d->menu->addAction( downAction );
d->menu->addSeparator();
}
@@ -233,7 +233,7 @@ void PropertyWidgetContainer::setObject( GluonCore::GluonObject* theObject )
{
QAction* delAction = new QAction( this );
delAction->setText( i18n( "Delete" ) );
- connect( delAction, SIGNAL( triggered( bool ) ), this, SLOT( delTriggered() ) );
+ connect( delAction, SIGNAL(triggered(bool)), this, SLOT(delTriggered()) );
d->menu->addAction( delAction );
}
@@ -305,7 +305,7 @@ PropertyWidgetContainer::delTriggered()
void PropertyWidgetContainer::addPropertyTriggered()
{
d->newCustomProp = new PropertyWidgetItemNewCustomProperty( this );
- connect( d->newCustomProp, SIGNAL( propertyCreated( GluonCore::GluonObject*, QString ) ), this, SLOT( propertyCreated( GluonCore::GluonObject*, QString ) ) );
+ connect( d->newCustomProp, SIGNAL(propertyCreated(GluonCore::GluonObject*,QString)), this, SLOT(propertyCreated(GluonCore::GluonObject*,QString)) );
d->newCustomProp->createProperty( d->object );
}
@@ -492,7 +492,7 @@ PropertyWidgetContainer::PropertyWidgetContainerPrivate::addPropertyItem( QStrin
item->setMinimumWidth( 150 );
item->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Fixed );
// Yeah, looks a bit funny, but this makes it possible to connect to either the pwi container... or the pwi view ;)
- connect( item, SIGNAL( propertyChanged( QObject*, QString, QVariant, QVariant ) ), parent, SIGNAL( propertyChanged( QObject*, QString, QVariant, QVariant ) ) );
+ connect( item, SIGNAL(propertyChanged(QObject*,QString,QVariant,QVariant)), parent, SIGNAL(propertyChanged(QObject*,QString,QVariant,QVariant)) );
int row = containerLayout->rowCount();
containerLayout->addWidget( nameLabel, row, 0 );
diff --git a/creator/lib/widgets/propertywidgetitemnewcustomproperty.cpp b/creator/lib/widgets/propertywidgetitemnewcustomproperty.cpp
index 39d63ee..906fb75 100644
--- a/creator/lib/widgets/propertywidgetitemnewcustomproperty.cpp
+++ b/creator/lib/widgets/propertywidgetitemnewcustomproperty.cpp
@@ -87,7 +87,7 @@ PropertyWidgetItemNewCustomProperty::PropertyWidgetItemNewCustomProperty( QWidge
layout->addWidget( frame );
QPushButton* okButton = new QPushButton( ki18n( "Add Property" ).toString(), this );
- connect( okButton, SIGNAL( clicked( bool ) ), this, SLOT( createPropertyClicked() ) );
+ connect( okButton, SIGNAL(clicked(bool)), this, SLOT(createPropertyClicked()) );
layout->addWidget( okButton );
setLayout( layout );
diff --git a/creator/mainwindow.cpp b/creator/mainwindow.cpp
index abfb7f0..99266b2 100644
--- a/creator/mainwindow.cpp
+++ b/creator/mainwindow.cpp
@@ -80,8 +80,8 @@ MainWindow::MainWindow( const QString& fileName )
DockManager::instance()->setMainWindow( this );
FileManager::instance()->initialize( this );
- connect( FileManager::instance()->partManager(), SIGNAL( activePartChanged( KParts::Part* ) ), SLOT( createGUI( KParts::Part* ) ) );
- connect( FileManager::instance()->partManager(), SIGNAL( activePartChanged( KParts::Part* ) ), SLOT( partChanged( KParts::Part* ) ) );
+ connect( FileManager::instance()->partManager(), SIGNAL(activePartChanged(KParts::Part*)), SLOT(createGUI(KParts::Part*)) );
+ connect( FileManager::instance()->partManager(), SIGNAL(activePartChanged(KParts::Part*)), SLOT(partChanged(KParts::Part*)) );
PluginManager::instance()->setMainWindow( this );
PluginManager::instance()->loadPlugins();
@@ -102,7 +102,7 @@ MainWindow::MainWindow( const QString& fileName )
d->projectDialog = new ProjectSelectionDialog( this );
d->projectDialog->setModal( true );
d->projectDialog->raise( );
- connect( d->projectDialog, SIGNAL( accepted() ), SLOT( projectDialogAccepted() ) );
+ connect( d->projectDialog, SIGNAL(accepted()), SLOT(projectDialogAccepted()) );
DockManager::instance()->setDocksEnabled( false );
DockManager::instance()->setDocksLocked( GluonCreator::Settings::lockLayout() );
@@ -176,7 +176,7 @@ void MainWindow::openProject( const QString& fileName )
}
HistoryManager::instance()->clear();
- connect( HistoryManager::instance(), SIGNAL( historyChanged( const QUndoCommand* ) ), SLOT( historyChanged() ) );
+ connect( HistoryManager::instance(), SIGNAL(historyChanged(const QUndoCommand*)), SLOT(historyChanged()) );
}
else
{
@@ -224,40 +224,40 @@ void MainWindow::setupActions()
{
KAction* newProject = new KAction( KIcon( "document-new" ), i18n( "New Project..." ), actionCollection() );
actionCollection()->addAction( "project_new", newProject );
- connect( newProject, SIGNAL( triggered( bool ) ), SLOT( showNewProjectDialog() ) );
+ connect( newProject, SIGNAL(triggered(bool)), SLOT(showNewProjectDialog()) );
newProject->setShortcut( KShortcut( "Ctrl+Shift+N" ) );
KAction* openProject = new KAction( KIcon( "document-open" ), i18n( "Open Project..." ), actionCollection() );
actionCollection()->addAction( "project_open", openProject );
- connect( openProject, SIGNAL( triggered( bool ) ), SLOT( showOpenProjectDialog() ) );
+ connect( openProject, SIGNAL(triggered(bool)), SLOT(showOpenProjectDialog()) );
openProject->setShortcut( KShortcut( "Ctrl+Shift+O" ) );
KAction* saveProject = new KAction( KIcon( "document-save" ), i18n( "Save Project" ), actionCollection() );
actionCollection()->addAction( "project_save", saveProject );
- connect( saveProject, SIGNAL( triggered( bool ) ), SLOT( saveProject() ) );
+ connect( saveProject, SIGNAL(triggered(bool)), SLOT(saveProject()) );
saveProject->setShortcut( KShortcut( "Ctrl+Shift+S" ) );
KAction* saveProjectAs = new KAction( KIcon( "document-save-as" ), i18n( "Save Project As..." ), actionCollection() );
actionCollection()->addAction( "project_save_as", saveProjectAs );
- connect( saveProjectAs, SIGNAL( triggered( bool ) ), SLOT( saveProjectAs() ) );
+ connect( saveProjectAs, SIGNAL(triggered(bool)), SLOT(saveProjectAs()) );
- KStandardAction::quit( this, SLOT( close() ), actionCollection() );
- KStandardAction::preferences( this, SLOT( showPreferences() ), actionCollection() );
+ KStandardAction::quit( this, SLOT(close()), actionCollection() );
+ KStandardAction::preferences( this, SLOT(showPreferences()), actionCollection() );
- KAction* undo = KStandardAction::undo( HistoryManager::instance(), SLOT( undo() ), actionCollection() );
+ KAction* undo = KStandardAction::undo( HistoryManager::instance(), SLOT(undo()), actionCollection() );
undo->setText( i18n( "Undo Project Action" ) );
undo->setShortcut( KShortcut( "Ctrl+Alt+Z" ) );
- connect( HistoryManager::instance(), SIGNAL( canUndoChanged( bool ) ), undo, SLOT( setEnabled( bool ) ) );
+ connect( HistoryManager::instance(), SIGNAL(canUndoChanged(bool)), undo, SLOT(setEnabled(bool)) );
- KAction* redo = KStandardAction::redo( HistoryManager::instance(), SLOT( redo() ), actionCollection() );
+ KAction* redo = KStandardAction::redo( HistoryManager::instance(), SLOT(redo()), actionCollection() );
redo->setText( i18n( "Redo Project Action" ) );
undo->setShortcut( KShortcut( "Ctrl+Alt+Shift+Z" ) );
- connect( HistoryManager::instance(), SIGNAL( canRedoChanged( bool ) ), redo, SLOT( setEnabled( bool ) ) );
+ connect( HistoryManager::instance(), SIGNAL(canRedoChanged(bool)), redo, SLOT(setEnabled(bool)) );
- connect( HistoryManager::instance(), SIGNAL( cleanChanged( bool ) ), SLOT( cleanChanged( bool ) ) );
+ connect( HistoryManager::instance(), SIGNAL(cleanChanged(bool)), SLOT(cleanChanged(bool)) );
d->recentFiles = new KRecentFilesAction( KIcon( "document-open-recent" ), i18n( "Recent Projects" ), actionCollection() );
- connect( d->recentFiles, SIGNAL( urlSelected( const KUrl& ) ), SLOT( openProject( const KUrl& ) ) );
+ connect( d->recentFiles, SIGNAL(urlSelected(KUrl)), SLOT(openProject(KUrl)) );
d->recentFiles->setText( i18n( "Open Recent Project" ) );
d->recentFiles->setToolTip( i18n( "Open recent project" ) );
d->recentFiles->setWhatsThis( i18n( "<b>Open recent project</b><p>Opens recently opened project.</p>" ) );
@@ -266,33 +266,33 @@ void MainWindow::setupActions()
KAction* newObject = new KAction( KIcon( "document-new" ), i18n( "New Game Object" ), actionCollection() );
actionCollection()->addAction( "gameobject_new", newObject );
- connect( newObject, SIGNAL( triggered( bool ) ), ObjectManager::instance(), SLOT( createNewGameObject() ) );
+ connect( newObject, SIGNAL(triggered(bool)), ObjectManager::instance(), SLOT(createNewGameObject()) );
KAction* newScene = new KAction( KIcon( "document-new" ), i18n( "New Scene" ), actionCollection() );
actionCollection()->addAction( "scene_new", newScene );
- connect( newScene, SIGNAL( triggered( bool ) ), ObjectManager::instance(), SLOT( createNewScene() ) );
+ connect( newScene, SIGNAL(triggered(bool)), ObjectManager::instance(), SLOT(createNewScene()) );
KAction* play = new KAction( KIcon( "media-playback-start" ), i18n( "Play Game" ), actionCollection() );
actionCollection()->addAction( "game_play", play );
- connect( play, SIGNAL( triggered( bool ) ), SLOT( playGame() ) );
+ connect( play, SIGNAL(triggered(bool)), SLOT(playGame()) );
KAction* pause = new KAction( KIcon( "media-playback-pause" ), i18n( "Pause Game" ), actionCollection() );
actionCollection()->addAction( "game_pause", pause );
- connect( pause, SIGNAL( triggered( bool ) ), SLOT( pauseGame() ) );
+ connect( pause, SIGNAL(triggered(bool)), SLOT(pauseGame()) );
KAction* stop = new KAction( KIcon( "media-playback-stop" ), i18n( "Stop Game" ), actionCollection() );
actionCollection()->addAction( "game_stop", stop );
- connect( stop, SIGNAL( triggered( bool ) ), SLOT( stopGame() ) );
+ connect( stop, SIGNAL(triggered(bool)), SLOT(stopGame()) );
KAction* addAsset = new KAction( KIcon( "document-import" ), i18n( "Import Assets..." ), actionCollection() );
actionCollection()->addAction( "asset_import", addAsset );
- connect( addAsset, SIGNAL( triggered( bool ) ), SLOT( addAsset() ) );
+ connect( addAsset, SIGNAL(triggered(bool)), SLOT(addAsset()) );
KAction* lockLayout = new KAction( KIcon( "object-locked" ), i18n( "Lock layout" ), actionCollection() );
actionCollection()->addAction( "lock_layout", lockLayout );
lockLayout->setCheckable( true );
lockLayout->setChecked( GluonCreator::Settings::lockLayout() );
- connect( lockLayout, SIGNAL( triggered( bool ) ), DockManager::instance(), SLOT( setDocksLocked( bool ) ) );
+ connect( lockLayout, SIGNAL(triggered(bool)), DockManager::instance(), SLOT(setDocksLocked(bool)) );
}
void MainWindow::showPreferences()
@@ -425,7 +425,7 @@ void MainWindow::partChanged( KParts::Part* part )
{
if( part == FileManager::instance()->part( "view" ) )
{
- QTimer::singleShot( 100, GluonEngine::Game::instance(), SLOT( drawAll() ) );
+ QTimer::singleShot( 100, GluonEngine::Game::instance(), SLOT(drawAll()) );
}
QList<QAction*> actions = menuBar()->actions();
diff --git a/creator/nodeeditor/actions/AbstractAction.cpp b/creator/nodeeditor/actions/AbstractAction.cpp
index 99ea486..1c716ab 100644
--- a/creator/nodeeditor/actions/AbstractAction.cpp
+++ b/creator/nodeeditor/actions/AbstractAction.cpp
@@ -32,8 +32,8 @@ AbstractAction::AbstractAction( GraphScene* scene, QObject* parent )
_graph = 0;
_graphScene = scene;
- connect( this, SIGNAL( triggered() ),
- this, SLOT( sendExecuteBit() ) );
+ connect( this, SIGNAL(triggered()),
+ this, SLOT(sendExecuteBit()) );
}
diff --git a/creator/nodeeditor/actions/AddEdge.cpp b/creator/nodeeditor/actions/AddEdge.cpp
index d2d7011..295dbe0 100644
--- a/creator/nodeeditor/actions/AddEdge.cpp
+++ b/creator/nodeeditor/actions/AddEdge.cpp
@@ -108,6 +108,6 @@ void AddEdgeAction::setActiveGraph( Graph* graph )
{
if( _graph ) disconnect( this, 0, _graph, 0 );
_graph = graph;
- connect( this, SIGNAL( addEdge( Node*, Node* ) ), _graph, SLOT( addEdge( Node*, Node* ) ) );
+ connect( this, SIGNAL(addEdge(Node*,Node*)), _graph, SLOT(addEdge(Node*,Node*)) );
}
diff --git a/creator/nodeeditor/actions/AddNode.cpp b/creator/nodeeditor/actions/AddNode.cpp
index a76a6d6..5c54395 100644
--- a/creator/nodeeditor/actions/AddNode.cpp
+++ b/creator/nodeeditor/actions/AddNode.cpp
@@ -63,6 +63,6 @@ void AddNodeAction::setActiveGraph( Graph* graph )
{
if( _graph ) disconnect( this, 0, _graph, 0 );
_graph = graph;
- connect( this, SIGNAL( addNode( QString, QPointF ) ), _graph, SLOT( addNode( QString, QPointF ) ) );
+ connect( this, SIGNAL(addNode(QString,QPointF)), _graph, SLOT(addNode(QString,QPointF)) );
}
diff --git a/creator/nodeeditor/actions/AddTypedNode.cpp b/creator/nodeeditor/actions/AddTypedNode.cpp
index ae084cc..cc4d929 100644
--- a/creator/nodeeditor/actions/AddTypedNode.cpp
+++ b/creator/nodeeditor/actions/AddTypedNode.cpp
@@ -76,7 +76,7 @@ void AddTypedNodeAction::setActiveGraph( Graph* graph )
{
if( _graph ) disconnect( this, 0, _graph, 0 );
_graph = graph;
- connect( this, SIGNAL( addNode( QString, QPointF, QString ) ), _graph, SLOT( addNode( QString, QPointF, QString ) ) );
- connect( this, SIGNAL( iAmDisappoint() ), _graph, SIGNAL( iAmDisappoint() ) );
+ connect( this, SIGNAL(addNode(QString,QPointF,QString)), _graph, SLOT(addNode(QString,QPointF,QString)) );
+ connect( this, SIGNAL(iAmDisappoint()), _graph, SIGNAL(iAmDisappoint()) );
}
diff --git a/creator/nodeeditor/actions/AlignAction.cpp b/creator/nodeeditor/actions/AlignAction.cpp
index b7c7eda..7ba01a3 100644
--- a/creator/nodeeditor/actions/AlignAction.cpp
+++ b/creator/nodeeditor/actions/AlignAction.cpp
@@ -28,7 +28,7 @@ AlignAction::AlignAction( const QString& tooltip, AlignAction::Orientation o, QW
: KAction( KIcon(), tooltip, parent )
{
m_orientation = o;
- connect( this, SIGNAL( triggered() ), this, SLOT( align() ) );
+ connect( this, SIGNAL(triggered()), this, SLOT(align()) );
kDebug() << " Align Action Created!";
switch( o )
{
diff --git a/creator/nodeeditor/actions/MoveNode.cpp b/creator/nodeeditor/actions/MoveNode.cpp
index cb49d20..dce07e7 100644
--- a/creator/nodeeditor/actions/MoveNode.cpp
+++ b/creator/nodeeditor/actions/MoveNode.cpp
@@ -86,7 +86,7 @@ void MoveNodeAction::executePress( QPointF pos )
{
_startPos = QPointF( _svgFrom->parentItem()->mapToScene( _svgFrom->x() + ( _svgFrom->boundingRect().width() / 2 ), _svgFrom->y() + ( _svgFrom->boundingRect().height() / 2 ) ) );
}
- connect( this, SIGNAL( addEdge( Node*, Node*, QGraphicsSvgItem*, QGraphicsSvgItem* ) ), _graph, SLOT( addEdge( Node*, Node*, QGraphicsSvgItem*, QGraphicsSvgItem* ) ) );
+ connect( this, SIGNAL(addEdge(Node*,Node*,QGraphicsSvgItem*,QGraphicsSvgItem*)), _graph, SLOT(addEdge(Node*,Node*,QGraphicsSvgItem*,QGraphicsSvgItem*)) );
}
void MoveNodeAction::executeMove( QPointF pos )
diff --git a/creator/nodeeditor/core/edge.cpp b/creator/nodeeditor/core/edge.cpp
index b5dec83..378c2c8 100644
--- a/creator/nodeeditor/core/edge.cpp
+++ b/creator/nodeeditor/core/edge.cpp
@@ -36,17 +36,17 @@ Edge::Edge( Graph* parent, Node* from, Node* to, QGraphicsSvgItem* cFrom, QGraph
if( from == to )
{
- connect( from, SIGNAL( changed() ), this, SIGNAL( changed() ) );
+ connect( from, SIGNAL(changed()), this, SIGNAL(changed()) );
from -> addSelfEdge( this );
}
else
{
- connect( from, SIGNAL( changed() ), this, SIGNAL( changed() ) );
+ connect( from, SIGNAL(changed()), this, SIGNAL(changed()) );
from -> addOutEdge( this );
- connect( to, SIGNAL( changed() ), this, SIGNAL( changed() ) );
+ connect( to, SIGNAL(changed()), this, SIGNAL(changed()) );
to -> addInEdge( this );
}
- connect( parent, SIGNAL( complexityChanged( bool ) ), this, SIGNAL( changed() ) );
+ connect( parent, SIGNAL(complexityChanged(bool)), this, SIGNAL(changed()) );
_relativeIndex = _to -> edges( _from ).size();
_showName = true;
diff --git a/creator/nodeeditor/core/graph.cpp b/creator/nodeeditor/core/graph.cpp
index 0d981fa..93bdc9c 100644
--- a/creator/nodeeditor/core/graph.cpp
+++ b/creator/nodeeditor/core/graph.cpp
@@ -116,7 +116,7 @@ Node* Graph::addNode( QString name )
n->setName( name );
_nodes.append( n );
emit nodeCreated( n );
- connect( n, SIGNAL( changed() ), this, SIGNAL( changed() ) );
+ connect( n, SIGNAL(changed()), this, SIGNAL(changed()) );
return n;
}
@@ -165,7 +165,7 @@ void Graph::addNode( QString name, QString type )
node->addDynamicProperty( key, nodelist[key] );
}
}
- connect( this, SIGNAL( forceUpdate() ), node, SIGNAL( changed() ) );
+ connect( this, SIGNAL(forceUpdate()), node, SIGNAL(changed()) );
emit forceUpdate();
}
@@ -209,7 +209,7 @@ void Graph::addNode( QString name, QPointF pos, QString type )
node->addDynamicProperty( key, nodelist[key] );
}
}
- connect( this, SIGNAL( forceUpdate() ), node, SIGNAL( changed() ) );
+ connect( this, SIGNAL(forceUpdate()), node, SIGNAL(changed()) );
emit forceUpdate();
}
@@ -258,7 +258,7 @@ Edge* Graph::addEdge( Node* from, Node* to, QGraphicsSvgItem* cFrom, QGraphicsSv
}*/
_edges.append( e );
emit edgeCreated( e );
- connect( e, SIGNAL( changed() ), this, SIGNAL( changed() ) );
+ connect( e, SIGNAL(changed()), this, SIGNAL(changed()) );
emit forceUpdate();
return e;
}
diff --git a/creator/nodeeditor/graphicsitem/NodeItem.cpp b/creator/nodeeditor/graphicsitem/NodeItem.cpp
index 60b9ded..798d63e 100644
--- a/creator/nodeeditor/graphicsitem/NodeItem.cpp
+++ b/creator/nodeeditor/graphicsitem/NodeItem.cpp
@@ -41,8 +41,8 @@ NodeItem::NodeItem( Node* n ) : QGraphicsSvgItem( 0 )
_colorizer = new QGraphicsColorizeEffect( this );
_font = QFont( "Helvetica [Cronyx]", 18 );
- connect( n, SIGNAL( changed() ), this, SLOT( setupNode() ) );
- connect( n, SIGNAL( removed() ), this, SLOT( deleteLater() ) );
+ connect( n, SIGNAL(changed()), this, SLOT(setupNode()) );
+ connect( n, SIGNAL(removed()), this, SLOT(deleteLater()) );
setupNode();
setZValue( 1 );
diff --git a/creator/nodeeditor/graphicsitem/OrientedEdgeItem.cpp b/creator/nodeeditor/graphicsitem/OrientedEdgeItem.cpp
index 19aec0f..c751662 100644
--- a/creator/nodeeditor/graphicsitem/OrientedEdgeItem.cpp
+++ b/creator/nodeeditor/graphicsitem/OrientedEdgeItem.cpp
@@ -63,8 +63,8 @@ OrientedEdgeItem::~OrientedEdgeItem()
void OrientedEdgeItem::connectSignals()
{
- connect( _edge, SIGNAL( changed() ), this, SLOT( updatePos() ) );
- connect( _edge, SIGNAL( removed() ), this, SLOT( remove() ) );
+ connect( _edge, SIGNAL(changed()), this, SLOT(updatePos()) );
+ connect( _edge, SIGNAL(removed()), this, SLOT(remove()) );
}
QPolygonF OrientedEdgeItem::createArrow( const QPointF& Pos1, const QPointF& Pos2 ) const
diff --git a/creator/nodeeditor/interface/GraphPropertiesWidget.cpp b/creator/nodeeditor/interface/GraphPropertiesWidget.cpp
index 5e786ef..52d3645 100644
--- a/creator/nodeeditor/interface/GraphPropertiesWidget.cpp
+++ b/creator/nodeeditor/interface/GraphPropertiesWidget.cpp
@@ -57,27 +57,27 @@ GraphPropertiesWidget::GraphPropertiesWidget( Graph* g, QWidget* parent )
_editWidget->setVisible( _activateGraph->isChecked() );
GraphDocument* gDocument = qobject_cast<GraphDocument*>( g->parent() );
- connect( this, SIGNAL( addGraph( QString ) ), gDocument, SLOT( addGraph( QString ) ) );
- connect( this, SIGNAL( removeGraph() ), g, SLOT( remove() ) );
+ connect( this, SIGNAL(addGraph(QString)), gDocument, SLOT(addGraph(QString)) );
+ connect( this, SIGNAL(removeGraph()), g, SLOT(remove()) );
- connect( _graphEdgeColor, SIGNAL( activated( QColor ) ), this, SLOT( setEdgeDefaultColor( QColor ) ) );
- connect( _graphNodeColor, SIGNAL( activated( QColor ) ), this, SLOT( setNodeDefaultColor( QColor ) ) );
+ connect( _graphEdgeColor, SIGNAL(activated(QColor)), this, SLOT(setEdgeDefaultColor(QColor)) );
+ connect( _graphNodeColor, SIGNAL(activated(QColor)), this, SLOT(setNodeDefaultColor(QColor)) );
- connect( this, SIGNAL( edgeColorsChanged( QString ) ), g, SLOT( setEdgesColor( QString ) ) );
- connect( this, SIGNAL( nodeColorsChanged( QString ) ), g, SLOT( setNodesColor( QString ) ) );
- connect( this, SIGNAL( edgeDefaultColorSetted( QString ) ), g, SLOT( setEdgeDefaultColor( QString ) ) );
- connect( this, SIGNAL( nodeDefaultColorSetted( QString ) ), g, SLOT( setNodeDefaultColor( QString ) ) );
+ connect( this, SIGNAL(edgeColorsChanged(QString)), g, SLOT(setEdgesColor(QString)) );
+ connect( this, SIGNAL(nodeColorsChanged(QString)), g, SLOT(setNodesColor(QString)) );
+ connect( this, SIGNAL(edgeDefaultColorSetted(QString)), g, SLOT(setEdgeDefaultColor(QString)) );
+ connect( this, SIGNAL(nodeDefaultColorSetted(QString)), g, SLOT(setNodeDefaultColor(QString)) );
- connect( _showEdgeNames, SIGNAL( toggled( bool ) ), g, SLOT( setEdgeNameVisibility( bool ) ) );
- connect( _showEdgeValues, SIGNAL( toggled( bool ) ), g, SLOT( setEdgeValueVisibility( bool ) ) );
- connect( _showNodeNames, SIGNAL( toggled( bool ) ), g, SLOT( setNodeNameVisibility( bool ) ) );
- connect( _showNodeValues, SIGNAL( toggled( bool ) ), g, SLOT( setNodeValueVisibility( bool ) ) );
+ connect( _showEdgeNames, SIGNAL(toggled(bool)), g, SLOT(setEdgeNameVisibility(bool)) );
+ connect( _showEdgeValues, SIGNAL(toggled(bool)), g, SLOT(setEdgeValueVisibility(bool)) );
+ connect( _showNodeNames, SIGNAL(toggled(bool)), g, SLOT(setNodeNameVisibility(bool)) );
+ connect( _showNodeValues, SIGNAL(toggled(bool)), g, SLOT(setNodeValueVisibility(bool)) );
- connect( _graphName, SIGNAL( textChanged( QString ) ), g, SLOT( setName( QString ) ) );
+ connect( _graphName, SIGNAL(textChanged(QString)), g, SLOT(setName(QString)) );
- connect( _graphOriented, SIGNAL( toggled( bool ) ), g, SLOT( setDirected( bool ) ) );
- connect( _graphAutomate, SIGNAL( toggled( bool ) ), g, SLOT( setAutomate( bool ) ) );
+ connect( _graphOriented, SIGNAL(toggled(bool)), g, SLOT(setDirected(bool)) );
+ connect( _graphAutomate, SIGNAL(toggled(bool)), g, SLOT(setAutomate(bool)) );
}
diff --git a/creator/nodeeditor/interface/GraphScene.cpp b/creator/nodeeditor/interface/GraphScene.cpp
index f3e9fa1..11b1d69 100644
--- a/creator/nodeeditor/interface/GraphScene.cpp
+++ b/creator/nodeeditor/interface/GraphScene.cpp
@@ -70,8 +70,8 @@ void GraphScene::setActiveGraph( Graph* g )
{
kDebug() << "Active Graph Set";
_graph = g;
- disconnect( SIGNAL( forceUpdate() ) );
- connect( this, SIGNAL( forceUpdate() ), _graph, SIGNAL( forceUpdate() ) );
+ disconnect( SIGNAL(forceUpdate()) );
+ connect( this, SIGNAL(forceUpdate()), _graph, SIGNAL(forceUpdate()) );
}
QAction* GraphScene::action()
@@ -123,7 +123,7 @@ void GraphScene::setActiveGraphDocument( GraphDocument* gd )
connectGraphSignals( _graphDocument->at( i ) );
kDebug() << "Graph Updated.";
}
- connect( _graphDocument, SIGNAL( graphCreated( Graph* ) ), this, SLOT( connectGraphSignals( Graph* ) ) );
+ connect( _graphDocument, SIGNAL(graphCreated(Graph*)), this, SLOT(connectGraphSignals(Graph*)) );
kDebug() << "Graph Document Set" << _graphDocument -> name();
}
void GraphScene::createItems()
@@ -148,8 +148,8 @@ void GraphScene::createItems()
void GraphScene::connectGraphSignals( Graph* g )
{
- connect( g, SIGNAL( nodeCreated( Node* ) ), this, SLOT( createNode( Node* ) ) );
- connect( g, SIGNAL( edgeCreated( Edge* ) ), this, SLOT( createEdge( Edge* ) ) );
+ connect( g, SIGNAL(nodeCreated(Node*)), this, SLOT(createNode(Node*)) );
+ connect( g, SIGNAL(edgeCreated(Edge*)), this, SLOT(createEdge(Edge*)) );
}
QGraphicsItem* GraphScene::createNode( Node* n )
diff --git a/creator/nodeeditor/interface/GraphVisualEditor.cpp b/creator/nodeeditor/interface/GraphVisualEditor.cpp
index ef4dc3a..da33739 100644
--- a/creator/nodeeditor/interface/GraphVisualEditor.cpp
+++ b/creator/nodeeditor/interface/GraphVisualEditor.cpp
@@ -101,7 +101,7 @@ void GraphVisualEditor::setActiveGraph( Graph* g )
{
_graph = g;
_scene->setActiveGraph( g );
- connect( _graph, SIGNAL( iAmDisappoint() ), this, SLOT( displaySadnessSlot() ) );
+ connect( _graph, SIGNAL(iAmDisappoint()), this, SLOT(displaySadnessSlot()) );
}
GraphScene* GraphVisualEditor::scene() const
diff --git a/creator/nodeeditor/interface/NodeEditor.cpp b/creator/nodeeditor/interface/NodeEditor.cpp
index 9bfc0aa..e1f4fbc 100644
--- a/creator/nodeeditor/interface/NodeEditor.cpp
+++ b/creator/nodeeditor/interface/NodeEditor.cpp
@@ -78,10 +78,10 @@ NodeEditor::NodeEditor() : QWidget()
_skipNextUpdate = false;
_isGameObject = false;
_isGameComponent = false;
- connect( GluonEngine::Game::instance(), SIGNAL( currentSceneChanged( GluonEngine::Scene* ) ), SLOT( readTheScene() ) );
- connect( GluonCreator::HistoryManager::instance(), SIGNAL( historyChanged( const QUndoCommand* ) ), SLOT( updateNodesFromModel( const QUndoCommand* ) ) );
- connect( GluonCreator::ObjectManager::instance(), SIGNAL( newGameObject( GluonEngine::GameObject* ) ), SLOT( markAsGameObject() ) );
- connect( GluonCreator::ObjectManager::instance(), SIGNAL( newComponent( GluonEngine::Component* ) ), SLOT( markAsGameComponent() ) );
+ connect( GluonEngine::Game::instance(), SIGNAL(currentSceneChanged(GluonEngine::Scene*)), SLOT(readTheScene()) );
+ connect( GluonCreator::HistoryManager::instance(), SIGNAL(historyChanged(const QUndoCommand*)), SLOT(updateNodesFromModel(const QUndoCommand*)) );
+ connect( GluonCreator::ObjectManager::instance(), SIGNAL(newGameObject(GluonEngine::GameObject*)), SLOT(markAsGameObject()) );
+ connect( GluonCreator::ObjectManager::instance(), SIGNAL(newComponent(GluonEngine::Component*)), SLOT(markAsGameComponent()) );
}
GraphDocument* NodeEditor::activeDocument() const
@@ -437,10 +437,10 @@ void NodeEditor::setupActions()
_actionButtons->addWidget( _exportCode );
_widgetTypeBar->setVisible( false );
qobject_cast<AddTypedNodeAction*>( ac->action( "add_typed_node" ) )->widgetTypeChanged( _widgetType->currentText() );
- connect( ac->action( "add_typed_node" ), SIGNAL( changed() ), this, SLOT( toggleWidgetTypeShown() ) );
- connect( ac->action( "delete_action" ), SIGNAL( deleteSceneItem( QString, QString ) ), this, SLOT( deleteThisSceneObject( QString, QString ) ) );
- connect( _widgetType, SIGNAL( currentIndexChanged( QString ) ), ac->action( "add_typed_node" ), SLOT( widgetTypeChanged( QString ) ) );
- connect( _exportCode, SIGNAL( clicked( bool ) ), this, SLOT( exportCode( bool ) ) );
+ connect( ac->action( "add_typed_node" ), SIGNAL(changed()), this, SLOT(toggleWidgetTypeShown()) );
+ connect( ac->action( "delete_action" ), SIGNAL(deleteSceneItem(QString,QString)), this, SLOT(deleteThisSceneObject(QString,QString)) );
+ connect( _widgetType, SIGNAL(currentIndexChanged(QString)), ac->action( "add_typed_node" ), SLOT(widgetTypeChanged(QString)) );
+ connect( _exportCode, SIGNAL(clicked(bool)), this, SLOT(exportCode(bool)) );
ac->action( "move_node" )->trigger();
}
@@ -471,7 +471,7 @@ void NodeEditor::setActiveGraphDocument( GraphDocument* d )
void NodeEditor::setActiveGraph( Graph* g )
{
- disconnect( SIGNAL( saveStateGDL() ) );
+ disconnect( SIGNAL(saveStateGDL()) );
foreach( QAction * action, ac->actions() )
{
if( AbstractAction* absAction = qobject_cast<AbstractAction*> ( action ) )
@@ -480,7 +480,7 @@ void NodeEditor::setActiveGraph( Graph* g )
_graphVisualEditor->setActiveGraph( g );
_graph = g;
g->setKCB( _widgetType );
- connect( g, SIGNAL( changed() ), SLOT( saveStateGDL() ) );
+ connect( g, SIGNAL(changed()), SLOT(saveStateGDL()) );
}
Graph* NodeEditor::graph() const
diff --git a/creator/nodeeditor/interface/NodePropertiesWidget.cpp b/creator/nodeeditor/interface/NodePropertiesWidget.cpp
index fd812f1..ec32490 100644
--- a/creator/nodeeditor/interface/NodePropertiesWidget.cpp
+++ b/creator/nodeeditor/interface/NodePropertiesWidget.cpp
@@ -57,18 +57,18 @@ void NodePropertiesWidget::setNode( NodeItem* n, QPointF pos )
reflectAttributes();
- connect( _node, SIGNAL( changed() ), this, SLOT( reflectAttributes() ) );
- connect( _node->parent(), SIGNAL( automateChanged( bool ) ), this, SLOT( updateAutomateAttributes( bool ) ) );
-
- connect( _showName, SIGNAL( toggled( bool ) ), _node, SLOT( hideName( bool ) ) );
- connect( _showValue, SIGNAL( toggled( bool ) ), _node, SLOT( hideValue( bool ) ) );
- connect( _begin, SIGNAL( toggled( bool ) ), _node, SLOT( setBegin( bool ) ) );
- connect( _end, SIGNAL( toggled( bool ) ), _node, SLOT( setEnd( bool ) ) );
- connect( _name, SIGNAL( textChanged( QString ) ), _node, SLOT( setName( QString ) ) );
- connect( _value, SIGNAL( textChanged( QString ) ), _node, SLOT( setValue( QString ) ) );
- connect( _x, SIGNAL( valueChanged( int ) ), _node, SLOT( setX( int ) ) );
- connect( _y, SIGNAL( valueChanged( int ) ), _node, SLOT( setY( int ) ) );
- connect( _width, SIGNAL( valueChanged( double ) ), _node, SLOT( setWidth( double ) ) );
+ connect( _node, SIGNAL(changed()), this, SLOT(reflectAttributes()) );
+ connect( _node->parent(), SIGNAL(automateChanged(bool)), this, SLOT(updateAutomateAttributes(bool)) );
+
+ connect( _showName, SIGNAL(toggled(bool)), _node, SLOT(hideName(bool)) );
+ connect( _showValue, SIGNAL(toggled(bool)), _node, SLOT(hideValue(bool)) );
+ connect( _begin, SIGNAL(toggled(bool)), _node, SLOT(setBegin(bool)) );
+ connect( _end, SIGNAL(toggled(bool)), _node, SLOT(setEnd(bool)) );
+ connect( _name, SIGNAL(textChanged(QString)), _node, SLOT(setName(QString)) );
+ connect( _value, SIGNAL(textChanged(QString)), _node, SLOT(setValue(QString)) );
+ connect( _x, SIGNAL(valueChanged(int)), _node, SLOT(setX(int)) );
+ connect( _y, SIGNAL(valueChanged(int)), _node, SLOT(setY(int)) );
+ connect( _width, SIGNAL(valueChanged(double)), _node, SLOT(setWidth(double)) );
GraphPropertiesModel* model = new GraphPropertiesModel();
model->setDataSource( _node );
@@ -163,18 +163,18 @@ void NodePropertiesWidget::on__addProperty_clicked()
void NodePropertiesWidget::disconnectNode( Node* n )
{
- disconnect( n, SIGNAL( changed() ), this, SLOT( reflectAttributes() ) );
- disconnect( n->parent(), SIGNAL( automateChanged( bool ) ), this, SLOT( updateAutomateAttributes( bool ) ) );
-
- disconnect( _showName, SIGNAL( toggled( bool ) ), n, SLOT( hideName( bool ) ) );
- disconnect( _showValue, SIGNAL( toggled( bool ) ), n, SLOT( hideValue( bool ) ) );
- disconnect( _begin, SIGNAL( toggled( bool ) ), n, SLOT( setBegin( bool ) ) );
- disconnect( _end, SIGNAL( toggled( bool ) ), n, SLOT( setEnd( bool ) ) );
- disconnect( _name, SIGNAL( textChanged( QString ) ), n, SLOT( setName( QString ) ) );
- disconnect( _value, SIGNAL( textChanged( QString ) ), n, SLOT( setValue( QString ) ) );
- disconnect( _x, SIGNAL( valueChanged( int ) ), n, SLOT( setX( int ) ) );
- disconnect( _y, SIGNAL( valueChanged( int ) ), n, SLOT( setY( int ) ) );
- disconnect( _width, SIGNAL( valueChanged( double ) ), n, SLOT( setWidth( double ) ) );
+ disconnect( n, SIGNAL(changed()), this, SLOT(reflectAttributes()) );
+ disconnect( n->parent(), SIGNAL(automateChanged(bool)), this, SLOT(updateAutomateAttributes(bool)) );
+
+ disconnect( _showName, SIGNAL(toggled(bool)), n, SLOT(hideName(bool)) );
+ disconnect( _showValue, SIGNAL(toggled(bool)), n, SLOT(hideValue(bool)) );
+ disconnect( _begin, SIGNAL(toggled(bool)), n, SLOT(setBegin(bool)) );
+ disconnect( _end, SIGNAL(toggled(bool)), n, SLOT(setEnd(bool)) );
+ disconnect( _name, SIGNAL(textChanged(QString)), n, SLOT(setName(QString)) );
+ disconnect( _value, SIGNAL(textChanged(QString)), n, SLOT(setValue(QString)) );
+ disconnect( _x, SIGNAL(valueChanged(int)), n, SLOT(setX(int)) );
+ disconnect( _y, SIGNAL(valueChanged(int)), n, SLOT(setY(int)) );
+ disconnect( _width, SIGNAL(valueChanged(double)), n, SLOT(setWidth(double)) );
}
diff --git a/creator/nodeeditor/interface/edgepropertieswidget.cpp b/creator/nodeeditor/interface/edgepropertieswidget.cpp
index 1c87c08..3a796f3 100644
--- a/creator/nodeeditor/interface/edgepropertieswidget.cpp
+++ b/creator/nodeeditor/interface/edgepropertieswidget.cpp
@@ -51,13 +51,13 @@ void EdgePropertiesWidget::setEdge( Edge* e, QPointF pos )
activateWindow();
raise();
- connect( _edge, SIGNAL( changed() ), this, SLOT( reflectAttributes() ) );
+ connect( _edge, SIGNAL(changed()), this, SLOT(reflectAttributes()) );
- connect( _value, SIGNAL( textChanged( QString ) ), _edge, SLOT( setValue( QString ) ) );
- connect( _name, SIGNAL( textChanged( QString ) ), _edge, SLOT( setName( QString ) ) );
- connect( _width, SIGNAL( valueChanged( double ) ), _edge, SLOT( setWidth( double ) ) );
- connect( _showName, SIGNAL( toggled( bool ) ), _edge, SLOT( hideName( bool ) ) );
- connect( _showValue, SIGNAL( toggled( bool ) ), _edge, SLOT( hideValue( bool ) ) );
+ connect( _value, SIGNAL(textChanged(QString)), _edge, SLOT(setValue(QString)) );
+ connect( _name, SIGNAL(textChanged(QString)), _edge, SLOT(setName(QString)) );
+ connect( _width, SIGNAL(valueChanged(double)), _edge, SLOT(setWidth(double)) );
+ connect( _showName, SIGNAL(toggled(bool)), _edge, SLOT(hideName(bool)) );
+ connect( _showValue, SIGNAL(toggled(bool)), _edge, SLOT(hideValue(bool)) );
reflectAttributes();
}
@@ -114,11 +114,11 @@ void EdgePropertiesWidget::on__addProperty_clicked()
void EdgePropertiesWidget::disconnectEdge()
{
- disconnect( _edge, SIGNAL( changed() ), this, SLOT( reflectAttributes() ) );
+ disconnect( _edge, SIGNAL(changed()), this, SLOT(reflectAttributes()) );
- disconnect( _value, SIGNAL( textChanged( QString ) ), _edge, SLOT( setValue( QString ) ) );
- disconnect( _name, SIGNAL( textChanged( QString ) ), _edge, SLOT( setName( QString ) ) );
- disconnect( _width, SIGNAL( valueChanged( double ) ), _edge, SLOT( setWidth( double ) ) );
- disconnect( _showName, SIGNAL( toggled( bool ) ), _edge, SLOT( hideName( bool ) ) );
- disconnect( _showValue, SIGNAL( toggled( bool ) ), _edge, SLOT( hideValue( bool ) ) );
+ disconnect( _value, SIGNAL(textChanged(QString)), _edge, SLOT(setValue(QString)) );
+ disconnect( _name, SIGNAL(textChanged(QString)), _edge, SLOT(setName(QString)) );
+ disconnect( _width, SIGNAL(valueChanged(double)), _edge, SLOT(setWidth(double)) );
+ disconnect( _showName, SIGNAL(toggled(bool)), _edge, SLOT(hideName(bool)) );
+ disconnect( _showValue, SIGNAL(toggled(bool)), _edge, SLOT(hideValue(bool)) );
}
diff --git a/creator/plugins/docks/distributiondock/distributiondock.cpp b/creator/plugins/docks/distributiondock/distributiondock.cpp
index 38029d0..9b2f166 100644
--- a/creator/plugins/docks/distributiondock/distributiondock.cpp
+++ b/creator/plugins/docks/distributiondock/distributiondock.cpp
@@ -104,7 +104,7 @@ void DistributionDock::updateUiFromGameProject()
else
{
GluonPlayer::GameDetailsJob* gameDetailsJob = GluonPlayer::ServiceProvider::instance()->fetchOneGame( id );
- connect( gameDetailsJob, SIGNAL( succeeded() ), SLOT( gameDetailsFetched() ) ) ;
+ connect( gameDetailsJob, SIGNAL(succeeded()), SLOT(gameDetailsFetched()) ) ;
gameDetailsJob->start();
emit switchToUpdateMode();
@@ -122,15 +122,15 @@ void DistributionDock::createOrUpdateGame()
{
GluonPlayer::AddGameJob* addGameJob = GluonPlayer::ServiceProvider::instance()->addGame(
d->ui.gameNameEdit->text(), d->categoryIds.at( d->ui.categoryList->currentIndex() ) );
- connect( addGameJob, SIGNAL( succeeded() ), SLOT( newGameUploadFinished() ) );
- connect( addGameJob, SIGNAL( failed() ), SLOT( newGameUploadFailed() ) );
+ connect( addGameJob, SIGNAL(succeeded()), SLOT(newGameUploadFinished()) );
+ connect( addGameJob, SIGNAL(failed()), SLOT(newGameUploadFailed()) );
addGameJob->start();
}
else
{
d->editGameJob = GluonPlayer::ServiceProvider::instance()->editGame(
d->ui.idEdit->text() );
- connect( d->editGameJob, SIGNAL( failed() ), SLOT( editGameFailed() ) );
+ connect( d->editGameJob, SIGNAL(failed()), SLOT(editGameFailed()) );
d->editGameJob->setName( d->ui.gameNameEdit->text() );
d->editGameJob->setCategory( d->categoryIds.at( d->ui.categoryList->currentIndex() ) );
@@ -172,7 +172,7 @@ void DistributionDock::editGameFailed( )
void DistributionDock::updateCategories()
{
GluonPlayer::CategoryListJob* categoryListJob = GluonPlayer::ServiceProvider::instance()->fetchCategories();
- connect( categoryListJob, SIGNAL( succeeded() ), SLOT( categoriesFetched() ) );
+ connect( categoryListJob, SIGNAL(succeeded()), SLOT(categoriesFetched()) );
categoryListJob->start();
}
@@ -208,7 +208,7 @@ void DistributionDock::loadCredentials()
}
else
{
- connect( provider, SIGNAL( initializationFinished() ), SLOT( loadCredentials() ) );
+ connect( provider, SIGNAL(initializationFinished()), SLOT(loadCredentials()) );
}
}
@@ -219,8 +219,8 @@ void DistributionDock::initEditGameProvider()
d->editGameJob = GluonPlayer::ServiceProvider::instance()->editGame(
d->ui.idEdit->text() );
- connect( d->editGameJob, SIGNAL( succeeded() ), SLOT( editGameFinished() ) );
- connect( d->editGameJob, SIGNAL( failed() ), SLOT( editGameFailed() ) );
+ connect( d->editGameJob, SIGNAL(succeeded()), SLOT(editGameFinished()) );
+ connect( d->editGameJob, SIGNAL(failed()), SLOT(editGameFailed()) );
d->editGameJob->start();
}
@@ -270,7 +270,7 @@ void DistributionDock::initGuiStates()
d->createState->assignProperty( d->ui.basicGroupBox, "enabled", true );
d->createState->assignProperty( d->ui.detailsGroupBox, "enabled", false );
d->createState->assignProperty( d->ui.createUpdateButton, "text", i18n( "Create" ) );
- d->createState->addTransition( this, SIGNAL( switchToUpdateMode() ), d->updateState );
+ d->createState->addTransition( this, SIGNAL(switchToUpdateMode()), d->updateState );
d->updateState->assignProperty( d->ui.basicGroupBox, "enabled", true );
d->updateState->assignProperty( d->ui.detailsGroupBox, "enabled", true );
@@ -279,20 +279,20 @@ void DistributionDock::initGuiStates()
d->uploadingState->assignProperty( d->ui.createUpdateButton, "text", i18n( "Uploading" ) );
d->uploadingState->assignProperty( d->ui.gamePage, "enabled", false );
- d->loggedOutState->addTransition( d->ui.loginButton, SIGNAL( clicked() ), d->loggingInState );
- d->loggingInState->addTransition( GluonPlayer::ServiceProvider::instance(), SIGNAL( loginFinished() ), d->loggedInState );
- d->loggingInState->addTransition( GluonPlayer::ServiceProvider::instance(), SIGNAL( loginFailed() ), d->loggedOutState );
- d->fetchingState->addTransition( this, SIGNAL( switchToCreateMode() ), d->createState );
- d->fetchingState->addTransition( this, SIGNAL( switchToUpdateMode() ), d->updateState );
- d->editingState->addTransition( d->ui.createUpdateButton, SIGNAL( clicked() ), d->uploadingState );
- d->editingState->addTransition( GluonEngine::Game::instance(), SIGNAL( currentProjectChanged( GluonEngine::GameProject* ) ),
+ d->loggedOutState->addTransition( d->ui.loginButton, SIGNAL(clicked()), d->loggingInState );
+ d->loggingInState->addTransition( GluonPlayer::ServiceProvider::instance(), SIGNAL(loginFinished()), d->loggedInState );
+ d->loggingInState->addTransition( GluonPlayer::ServiceProvider::instance(), SIGNAL(loginFailed()), d->loggedOutState );
+ d->fetchingState->addTransition( this, SIGNAL(switchToCreateMode()), d->createState );
+ d->fetchingState->addTransition( this, SIGNAL(switchToUpdateMode()), d->updateState );
+ d->editingState->addTransition( d->ui.createUpdateButton, SIGNAL(clicked()), d->uploadingState );
+ d->editingState->addTransition( GluonEngine::Game::instance(), SIGNAL(currentProjectChanged(GluonEngine::GameProject*)),
d->fetchingState );
- d->uploadingState->addTransition( this, SIGNAL( gameUploadFinished() ), d->uploadFinishedState );
+ d->uploadingState->addTransition( this, SIGNAL(gameUploadFinished()), d->uploadFinishedState );
- connect( d->loggingInState, SIGNAL( entered() ), this, SLOT( doLogin() ) );
- connect( d->fetchingState, SIGNAL( entered() ), this, SLOT( updateUiFromGameProject() ) );
- connect( d->uploadingState, SIGNAL( entered() ), this, SLOT( createOrUpdateGame() ) );
- connect( d->updateState, SIGNAL( entered() ), SLOT( initEditGameProvider() ) );
+ connect( d->loggingInState, SIGNAL(entered()), this, SLOT(doLogin()) );
+ connect( d->fetchingState, SIGNAL(entered()), this, SLOT(updateUiFromGameProject()) );
+ connect( d->uploadingState, SIGNAL(entered()), this, SLOT(createOrUpdateGame()) );
+ connect( d->updateState, SIGNAL(entered()), SLOT(initEditGameProvider()) );
d->machine.start();
}
@@ -315,7 +315,7 @@ void DistributionDock::gameDetailsFetched( )
void DistributionDock::updateLicenses()
{
GluonPlayer::LicenseJob* licenseJob = GluonPlayer::ServiceProvider::instance()->fetchLicenses();
- connect( licenseJob, SIGNAL( succeeded() ), SLOT( licensesFetched() ) );
+ connect( licenseJob, SIGNAL(succeeded()), SLOT(licensesFetched()) );
licenseJob->start();
}
@@ -356,8 +356,8 @@ void DistributionDock::uploadGameArchive()
const QString archivePath = createArchive();
GluonPlayer::GameUploadJob* uploadJob = GluonPlayer::ServiceProvider::instance()->uploadGame( id, archivePath );
- connect( uploadJob, SIGNAL( succeeded() ), SLOT( editGameFinished() ) );
- connect( uploadJob, SIGNAL( failed() ), SLOT( editGameFailed() ) );
+ connect( uploadJob, SIGNAL(succeeded()), SLOT(editGameFinished()) );
+ connect( uploadJob, SIGNAL(failed()), SLOT(editGameFailed()) );
uploadJob->setApiKey( d->ui.apiKeyEdit->text() );
uploadJob->start();
}
diff --git a/creator/plugins/docks/messagedock/messagedock.cpp b/creator/plugins/docks/messagedock/messagedock.cpp
index 90f9215..1ca6115 100644
--- a/creator/plugins/docks/messagedock/messagedock.cpp
+++ b/creator/plugins/docks/messagedock/messagedock.cpp
@@ -54,7 +54,7 @@ MessageDock::MessageDock( const QString& title, QWidget* parent, Qt::WindowFlags
d->view->addItem( new QListWidgetItem( i18n( "Welcome to Gluon Creator %1", GluonCore::Global::versionString() ), d->view ) );
d->view->setSelectionMode( QAbstractItemView::ExtendedSelection );
- connect( GluonEngine::Game::instance(), SIGNAL( showDebug( const QString& ) ), SLOT( showDebug( const QString& ) ) );
+ connect( GluonEngine::Game::instance(), SIGNAL(showDebug(QString)), SLOT(showDebug(QString)) );
QWidget* widget = new QWidget( this );
QVBoxLayout* layout = new QVBoxLayout();
@@ -65,20 +65,20 @@ MessageDock::MessageDock( const QString& title, QWidget* parent, Qt::WindowFlags
KToolBar* toolBar = new KToolBar( this );
toolBar->setIconDimensions( 16 );
- QAction* selectAll = toolBar->addAction( KIcon( "edit-select-all" ), i18n( "Select All" ), this, SLOT( selectAll() ) );
+ QAction* selectAll = toolBar->addAction( KIcon( "edit-select-all" ), i18n( "Select All" ), this, SLOT(selectAll()) );
d->view->addAction( selectAll );
- QAction* copy = toolBar->addAction( KIcon( "edit-copy" ), i18n( "Copy" ), this, SLOT( copy() ) );
+ QAction* copy = toolBar->addAction( KIcon( "edit-copy" ), i18n( "Copy" ), this, SLOT(copy()) );
d->view->addAction( copy );
KAction* separator = new KAction( d->view );
separator->setSeparator( true );
d->view->addAction( separator );
- QAction* clearSelection = toolBar->addAction( KIcon( "edit-clear-list" ), i18n( "Clear Selection" ), this, SLOT( clearSelection() ) );
+ QAction* clearSelection = toolBar->addAction( KIcon( "edit-clear-list" ), i18n( "Clear Selection" ), this, SLOT(clearSelection()) );
d->view->addAction( clearSelection );
- QAction* clearAll = toolBar->addAction( KIcon( "edit-clear" ), i18n( "Clear All" ), d->view, SLOT( clear() ) );
+ QAction* clearAll = toolBar->addAction( KIcon( "edit-clear" ), i18n( "Clear All" ), d->view, SLOT(clear()) );
d->view->addAction( clearAll );
layout->addWidget( toolBar );
diff --git a/creator/plugins/docks/projectdock/projectdock.cpp b/creator/plugins/docks/projectdock/projectdock.cpp
index 2509a18..6ad8f63 100644
--- a/creator/plugins/docks/projectdock/projectdock.cpp
+++ b/creator/plugins/docks/projectdock/projectdock.cpp
@@ -138,7 +138,7 @@ void ProjectDock::ProjectDockPrivate::menuForObject( QModelIndex index, QMenu* m
QList<QAction*> actions = asset->actions();
foreach( QAction * action, actions )
{
- connect( action, SIGNAL( triggered( bool ) ), model, SIGNAL( layoutChanged() ) );
+ connect( action, SIGNAL(triggered(bool)), model, SIGNAL(layoutChanged()) );
menu->addAction( action );
}
}
@@ -153,7 +153,7 @@ void ProjectDock::ProjectDockPrivate::menuForObject( QModelIndex index, QMenu* m
menu->addSeparator();
action = new QAction( KIcon( "edit-delete" ), i18n( "Delete \"%1\"...", object->name() ), q );
- connect( action, SIGNAL( triggered() ), q, SLOT( deleteActionTriggered() ) );
+ connect( action, SIGNAL(triggered()), q, SLOT(deleteActionTriggered()) );
menu->addAction( action );
}
}
@@ -177,12 +177,12 @@ ProjectDock::ProjectDock( const QString& title, QWidget* parent, Qt::WindowFlags
d->view->setAcceptDrops( true );
d->view->setContextMenuPolicy( Qt::CustomContextMenu );
d->view->setEditTriggers( QAbstractItemView::NoEditTriggers );
- connect( d->view, SIGNAL( customContextMenuRequested( const QPoint& ) ), SLOT( showContextMenuRequested( const QPoint& ) ) );
- connect( d->view->selectionModel(), SIGNAL( selectionChanged( QItemSelection, QItemSelection ) ), SLOT( selectionChanged( QItemSelection, QItemSelection ) ) );
+ connect( d->view, SIGNAL(customContextMenuRequested(QPoint)), SLOT(showContextMenuRequested(QPoint)) );
+ connect( d->view->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), SLOT(selectionChanged(QItemSelection,QItemSelection)) );
d->model->setProject( GluonEngine::Game::instance()->gameProject() );
- connect( GluonEngine::Game::instance(), SIGNAL( currentProjectChanged( GluonEngine::GameProject* ) ), SLOT( currentProjectChanged( GluonEngine::GameProject* ) ) );
- connect( d->view, SIGNAL( doubleClicked( QModelIndex ) ), SLOT( activated( QModelIndex ) ) );
+ connect( GluonEngine::Game::instance(), SIGNAL(currentProjectChanged(GluonEngine::GameProject*)), SLOT(currentProjectChanged(GluonEngine::GameProject*)) );
+ connect( d->view, SIGNAL(doubleClicked(QModelIndex)), SLOT(activated(QModelIndex)) );
QWidget* widget = new QWidget( this );
QVBoxLayout* layout = new QVBoxLayout();
@@ -204,8 +204,8 @@ ProjectDock::ProjectDock( const QString& title, QWidget* parent, Qt::WindowFlags
d->toolBar->insertWidget( 0, menuButton );
- d->newMenu->addAction( KIcon( "folder" ), i18n( "New Folder" ), this, SLOT( createNewFolder() ) );
- d->newMenu->addAction( KIcon( "document-new" ), i18n( "New Scene" ), this, SLOT( createNewScene() ) );
+ d->newMenu->addAction( KIcon( "folder" ), i18n( "New Folder" ), this, SLOT(createNewFolder()) );
+ d->newMenu->addAction( KIcon( "document-new" ), i18n( "New Scene" ), this, SLOT(createNewScene()) );
d->newMenu->addSeparator();
QHash< QString, QMenu* > menus;
@@ -226,7 +226,7 @@ ProjectDock::ProjectDock( const QString& title, QWidget* parent, Qt::WindowFlags
}
GluonEngine::AssetTemplate* item = itr.value();
- QAction* action = menu->addAction( i18nc( "Add a new asset", "New %1", item->name ), this, SLOT( createNewAsset() ) );
+ QAction* action = menu->addAction( i18nc( "Add a new asset", "New %1", item->name ), this, SLOT(createNewAsset()) );
action->setIcon( KIcon( d->assetIcons.value( item ) ) );
action->setProperty( "newAssetClassname", item->parent()->metaObject()->className() );
action->setProperty( "newAssetName", item->name );
@@ -235,9 +235,9 @@ ProjectDock::ProjectDock( const QString& title, QWidget* parent, Qt::WindowFlags
}
d->newMenu->addSeparator();
- d->newMenu->addAction( KIcon( "document-import" ), i18n( "Import Assets..." ), this, SLOT( importAssetsTriggered() ) );
+ d->newMenu->addAction( KIcon( "document-import" ), i18n( "Import Assets..." ), this, SLOT(importAssetsTriggered()) );
- d->toolBar->addAction( KIcon( "edit-delete" ), i18nc( "Delete selected object from project", "Delete" ), this, SLOT( deleteActionTriggered() ) );
+ d->toolBar->addAction( KIcon( "edit-delete" ), i18nc( "Delete selected object from project", "Delete" ), this, SLOT(deleteActionTriggered()) );
layout->addWidget( d->toolBar );
layout->addWidget( d->view );
@@ -314,7 +314,7 @@ void ProjectDock::showContextMenuRequested( const QPoint& pos )
QMenu menu( static_cast<GluonCore::GluonObject*>( index.internalPointer() )->name(), this );
d->menuForObject( index, &menu );
menu.exec( d->view->mapToGlobal( pos ) );
- connect( &menu, SIGNAL( aboutToHide() ), SLOT( contextMenuHiding() ) );
+ connect( &menu, SIGNAL(aboutToHide()), SLOT(contextMenuHiding()) );
}
void ProjectDock::contextMenuHiding()
diff --git a/creator/plugins/docks/propertiesdock/propertiesdock.cpp b/creator/plugins/docks/propertiesdock/propertiesdock.cpp
index 1249c1a..f4ce4a8 100644
--- a/creator/plugins/docks/propertiesdock/propertiesdock.cpp
+++ b/creator/plugins/docks/propertiesdock/propertiesdock.cpp
@@ -47,9 +47,9 @@ PropertiesDock::PropertiesDock( const QString& title, QWidget* parent, Qt::Windo
setWidget( d->widget );
- connect( SelectionManager::instance(), SIGNAL( selectionChanged( SelectionManager::SelectionList ) ), SLOT( selectionChanged( SelectionManager::SelectionList ) ) );
- connect( d->widget, SIGNAL( propertyChanged( QObject*, QString, QVariant, QVariant ) ), SLOT( propertyChanged( QObject*, QString, QVariant, QVariant ) ) );
- connect( ObjectManager::instance(), SIGNAL( newComponent( GluonEngine::Component* ) ), SLOT( newComponent( GluonEngine::Component* ) ) );
+ connect( SelectionManager::instance(), SIGNAL(selectionChanged(SelectionManager::SelectionList)), SLOT(selectionChanged(SelectionManager::SelectionList)) );
+ connect( d->widget, SIGNAL(propertyChanged(QObject*,QString,QVariant,QVariant)), SLOT(propertyChanged(QObject*,QString,QVariant,QVariant)) );
+ connect( ObjectManager::instance(), SIGNAL(newComponent(GluonEngine::Component*)), SLOT(newComponent(GluonEngine::Component*)) );
}
PropertiesDock::~PropertiesDock()
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/boolpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/boolpropertywidgetitem.cpp
index 42680e2..98cb0ff 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/boolpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/boolpropertywidgetitem.cpp
@@ -30,7 +30,7 @@ BoolPropertyWidgetItem::BoolPropertyWidgetItem( QWidget* parent, Qt::WindowFlags
: PropertyWidgetItem( parent, f )
{
setEditWidget( new QCheckBox( this ) );
- connect( editWidget(), SIGNAL( toggled( bool ) ), SLOT( toggled( bool ) ) );
+ connect( editWidget(), SIGNAL(toggled(bool)), SLOT(toggled(bool)) );
}
BoolPropertyWidgetItem::~BoolPropertyWidgetItem()
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/colorpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/colorpropertywidgetitem.cpp
index d93a48e..2a551dd 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/colorpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/colorpropertywidgetitem.cpp
@@ -43,7 +43,7 @@ ColorPropertyWidgetItem::ColorPropertyWidgetItem( QWidget* parent, Qt::WindowFla
d = new ColorPropertyWidgetItemPrivate;
d->button = new KColorButton( this );
- connect( d->button, SIGNAL( changed( const QColor& ) ), this, SLOT( colorValuechanged( const QColor& ) ) );
+ connect( d->button, SIGNAL(changed(QColor)), this, SLOT(colorValuechanged(QColor)) );
setEditWidget( d->button );
}
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/floatpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/floatpropertywidgetitem.cpp
index c907046..c18e020 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/floatpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/floatpropertywidgetitem.cpp
@@ -35,7 +35,7 @@ FloatPropertyWidgetItem::FloatPropertyWidgetItem( QWidget* parent, Qt::WindowFla
spinBox->setMinimum( FLT_MIN );
spinBox->setMaximum( FLT_MAX );
setEditWidget( spinBox );
- connect( editWidget(), SIGNAL( valueChanged( double ) ), SLOT( floatValueChanged( double ) ) );
+ connect( editWidget(), SIGNAL(valueChanged(double)), SLOT(floatValueChanged(double)) );
}
FloatPropertyWidgetItem::~FloatPropertyWidgetItem()
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/intpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/intpropertywidgetitem.cpp
index d623487..8bf6c81 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/intpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/intpropertywidgetitem.cpp
@@ -83,11 +83,11 @@ void IntPropertyWidgetItem::setEditProperty( const QString& propertyName )
if( editObject()->property( propertyName.toUtf8() ).typeName() == QString( "uint" ) )
{
spinBox->setMinimum( 3 );
- connect( spinBox, SIGNAL( valueChanged( int ) ), this, SLOT( uintValueChanged( int ) ) );
+ connect( spinBox, SIGNAL(valueChanged(int)), this, SLOT(uintValueChanged(int)) );
}
else
{
- connect( spinBox, SIGNAL( valueChanged( int ) ), this, SLOT( intValueChanged( int ) ) );
+ connect( spinBox, SIGNAL(valueChanged(int)), this, SLOT(intValueChanged(int)) );
}
GluonCore::GluonObject* object = qobject_cast<GluonCore::GluonObject*>( editObject() );
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/intvectorpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/intvectorpropertywidgetitem.cpp
index 2973253..c1bd51c 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/intvectorpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/intvectorpropertywidgetitem.cpp
@@ -46,7 +46,7 @@ IntVectorPropertyWidgetItem::IntVectorPropertyWidgetItem( QWidget* parent, Qt::W
addButton = new QToolButton( centralWidget );
addButton->setIcon( KIcon( "list-add" ) );
- connect( addButton, SIGNAL( clicked( bool ) ), SLOT( addItem() ) );
+ connect( addButton, SIGNAL(clicked(bool)), SLOT(addItem()) );
layout->addWidget( addButton, 0, 0 );
countLabel = new QLabel( centralWidget );
@@ -143,12 +143,12 @@ void IntVectorPropertyWidgetItem::addItem( int value )
QToolButton* removeButton = new QToolButton( listItems );
removeButton->setIcon( KIcon( "list-remove" ) );
- connect( removeButton, SIGNAL( clicked( bool ) ), SLOT( removeClicked() ) );
+ connect( removeButton, SIGNAL(clicked(bool)), SLOT(removeClicked()) );
containerLayout->addWidget( removeButton );
QSpinBox* editorSpin = new QSpinBox( listItems );
editorSpin->setValue( value );
- connect( editorSpin, SIGNAL( valueChanged( int ) ), SLOT( spinValueChanged( int ) ) );
+ connect( editorSpin, SIGNAL(valueChanged(int)), SLOT(spinValueChanged(int)) );
containerLayout->addWidget( editorSpin );
listItems->layout()->addWidget( container );
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/qfontpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/qfontpropertywidgetitem.cpp
index 3e00cdb..97abb1a 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/qfontpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/qfontpropertywidgetitem.cpp
@@ -31,7 +31,7 @@ QFontPropertyWidgetItem::QFontPropertyWidgetItem( QWidget* parent, Qt::WindowFla
: PropertyWidgetItem( parent, f )
{
KFontRequester* theFontReq = new KFontRequester( this );
- connect( theFontReq, SIGNAL( fontSelected( const QFont& ) ), this, SLOT( fontChanged( const QFont& ) ) );
+ connect( theFontReq, SIGNAL(fontSelected(QFont)), this, SLOT(fontChanged(QFont)) );
setEditWidget( theFontReq );
}
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/qrealpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/qrealpropertywidgetitem.cpp
index 6372182..10099a5 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/qrealpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/qrealpropertywidgetitem.cpp
@@ -87,7 +87,7 @@ QRealPropertyWidgetItem::setEditProperty( const QString& value )
}
- connect( editWidget(), SIGNAL( valueChanged( double ) ), SLOT( qrealValueChanged( double ) ) );
+ connect( editWidget(), SIGNAL(valueChanged(double)), SLOT(qrealValueChanged(double)) );
GluonCreator::PropertyWidgetItem::setEditProperty( value );
}
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/qsizefpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/qsizefpropertywidgetitem.cpp
index 1416084..94438b0 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/qsizefpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/qsizefpropertywidgetitem.cpp
@@ -55,13 +55,13 @@ QSizeFPropertyWidgetItem::QSizeFPropertyWidgetItem( QWidget* parent, Qt::WindowF
d->height->setPrefix( tr( "Height: " ) );
d->height->setRange( -FLT_MAX, FLT_MAX );
layout->addWidget( d->height );
- connect( d->height, SIGNAL( valueChanged( double ) ), SLOT( heightValueChanged( double ) ) );
+ connect( d->height, SIGNAL(valueChanged(double)), SLOT(heightValueChanged(double)) );
d->width = new QDoubleSpinBox( this );
d->width->setPrefix( tr( "Width: " ) );
d->width->setRange( -FLT_MAX, FLT_MAX );
layout->addWidget( d->width );
- connect( d->width, SIGNAL( valueChanged( double ) ), SLOT( widthValueChanged( double ) ) );
+ connect( d->width, SIGNAL(valueChanged(double)), SLOT(widthValueChanged(double)) );
setEditWidget( widget );
}
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/quaternionpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/quaternionpropertywidgetitem.cpp
index 3105437..224b1ba 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/quaternionpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/quaternionpropertywidgetitem.cpp
@@ -64,7 +64,7 @@ QuaternionPropertyWidgetItem::QuaternionPropertyWidgetItem( QWidget* parent, Qt:
d->x->setDecimals( 3 );
d->x->setSingleStep( 0.01 );
vectorLayout->addWidget( d->x );
- connect( d->x, SIGNAL( valueChanged( double ) ), this, SLOT( spinValueChanged( double ) ) );
+ connect( d->x, SIGNAL(valueChanged(double)), this, SLOT(spinValueChanged(double)) );
d->y = new QDoubleSpinBox( this );
d->y->setPrefix( "Y: " );
@@ -72,7 +72,7 @@ QuaternionPropertyWidgetItem::QuaternionPropertyWidgetItem( QWidget* parent, Qt:
d->y->setDecimals( 3 );
d->y->setSingleStep( 0.01 );
vectorLayout->addWidget( d->y );
- connect( d->y, SIGNAL( valueChanged( double ) ), this, SLOT( spinValueChanged( double ) ) );
+ connect( d->y, SIGNAL(valueChanged(double)), this, SLOT(spinValueChanged(double)) );
d->z = new QDoubleSpinBox( this );
d->z->setPrefix( "Z: " );
@@ -80,13 +80,13 @@ QuaternionPropertyWidgetItem::QuaternionPropertyWidgetItem( QWidget* parent, Qt:
d->z->setDecimals( 3 );
d->z->setSingleStep( 0.01 );
vectorLayout->addWidget( d->z );
- connect( d->z, SIGNAL( valueChanged( double ) ), this, SLOT( spinValueChanged( double ) ) );
+ connect( d->z, SIGNAL(valueChanged(double)), this, SLOT(spinValueChanged(double)) );
d->angle = new QDoubleSpinBox( this );
d->angle->setPrefix( "Angle: " );
d->angle->setRange( -FLT_MAX, FLT_MAX );
layout->addWidget( d->angle );
- connect( d->angle, SIGNAL( valueChanged( double ) ), this, SLOT( spinValueChanged( double ) ) );
+ connect( d->angle, SIGNAL(valueChanged(double)), this, SLOT(spinValueChanged(double)) );
setEditWidget( base );
}
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/qurlpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/qurlpropertywidgetitem.cpp
index 237d66b..26c39b6 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/qurlpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/qurlpropertywidgetitem.cpp
@@ -32,7 +32,7 @@ QUrlPropertyWidgetItem::QUrlPropertyWidgetItem( QWidget* parent, Qt::WindowFlags
{
KLineEdit* input = new KLineEdit( this );
//input->setInputMask("");
- connect( input, SIGNAL( editingFinished() ), this, SLOT( urlValueChanged() ) );
+ connect( input, SIGNAL(editingFinished()), this, SLOT(urlValueChanged()) );
setEditWidget( input );
}
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/stringlistpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/stringlistpropertywidgetitem.cpp
index a7e62c4..1298228 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/stringlistpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/stringlistpropertywidgetitem.cpp
@@ -47,7 +47,7 @@ StringListPropertyWidgetItem::StringListPropertyWidgetItem( QWidget* parent, Qt:
addButton = new QToolButton( centralWidget );
addButton->setIcon( KIcon( "list-add" ) );
- connect( addButton, SIGNAL( clicked( bool ) ), SLOT( addItem() ) );
+ connect( addButton, SIGNAL(clicked(bool)), SLOT(addItem()) );
layout->addWidget( addButton, 0, 0 );
countLabel = new QLabel( centralWidget );
@@ -148,12 +148,12 @@ void StringListPropertyWidgetItem::addItem( QString value )
QToolButton* removeButton = new QToolButton( listItems );
removeButton->setIcon( KIcon( "list-remove" ) );
- connect( removeButton, SIGNAL( clicked( bool ) ), SLOT( removeClicked() ) );
+ connect( removeButton, SIGNAL(clicked(bool)), SLOT(removeClicked()) );
containerLayout->addWidget( removeButton );
KLineEdit* editorLE = new KLineEdit( listItems );
editorLE->setText( value );
- connect( editorLE, SIGNAL( valueChanged( int ) ), SLOT( leValueHasChanged( QString ) ) );
+ connect( editorLE, SIGNAL(valueChanged(int)), SLOT(leValueHasChanged(QString)) );
containerLayout->addWidget( editorLE );
listItems->layout()->addWidget( container );
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/textpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/textpropertywidgetitem.cpp
index 2d8bdcc..62b3c84 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/textpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/textpropertywidgetitem.cpp
@@ -30,7 +30,7 @@ using namespace GluonCreator;
TextPropertyWidgetItem::TextPropertyWidgetItem( QWidget* parent, Qt::WindowFlags f ): PropertyWidgetItem( parent, f )
{
setEditWidget( new KLineEdit( this ) );
- connect( editWidget(), SIGNAL( textEdited( QString ) ), SLOT( textEdited( QString ) ) );
+ connect( editWidget(), SIGNAL(textEdited(QString)), SLOT(textEdited(QString)) );
}
TextPropertyWidgetItem::~TextPropertyWidgetItem()
diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/vectorpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/vectorpropertywidgetitem.cpp
index fc75925..9cd219f 100644
--- a/creator/plugins/docks/propertiesdock/propertywidgetitems/vectorpropertywidgetitem.cpp
+++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/vectorpropertywidgetitem.cpp
@@ -59,25 +59,25 @@ VectorPropertyWidgetItem::VectorPropertyWidgetItem( QWidget* parent, Qt::WindowF
d->x->setPrefix( "X: " );
d->x->setRange( -FLT_MAX, FLT_MAX );
layout->addWidget( d->x );
- connect( d->x, SIGNAL( valueChanged( double ) ), SLOT( editValueChanged() ) );
+ connect( d->x, SIGNAL(valueChanged(double)), SLOT(editValueChanged()) );
d->y = new QDoubleSpinBox( this );
d->y->setPrefix( "Y: " );
d->y->setRange( -FLT_MAX, FLT_MAX );
layout->addWidget( d->y );
- connect( d->y, SIGNAL( valueChanged( double ) ), SLOT( editValueChanged() ) );
+ connect( d->y, SIGNAL(valueChanged(double)), SLOT(editValueChanged()) );
d->z = new QDoubleSpinBox( this );
d->z->setPrefix( "Z: " );
d->z->setRange( -FLT_MAX, FLT_MAX );
layout->addWidget( d->z );
- connect( d->z, SIGNAL( valueChanged( double ) ), SLOT( editValueChanged() ) );
+ connect( d->z, SIGNAL(valueChanged(double)), SLOT(editValueChanged()) );
d->w = new QDoubleSpinBox( this );
d->w->setPrefix( "W: " );
d->w->setRange( -FLT_MAX, FLT_MAX );
layout->addWidget( d->w );
- connect( d->w, SIGNAL( valueChanged( double ) ), SLOT( editValueChanged() ) );
+ connect( d->w, SIGNAL(valueChanged(double)), SLOT(editValueChanged()) );
setEditWidget( base );
}
diff --git a/creator/plugins/docks/scenedock/scenedock.cpp b/creator/plugins/docks/scenedock/scenedock.cpp
index b190acd..8d759bb 100644
--- a/creator/plugins/docks/scenedock/scenedock.cpp
+++ b/creator/plugins/docks/scenedock/scenedock.cpp
@@ -68,8 +68,8 @@ SceneDock::SceneDock( const QString& title, QWidget* parent, Qt::WindowFlags fla
if( GluonEngine::Game::instance()->currentScene() )
d->model->setRootGameObject( GluonEngine::Game::instance()->currentScene()->sceneContents() );
- connect( GluonEngine::Game::instance(), SIGNAL( currentSceneChanged( GluonEngine::Scene* ) ), SLOT( sceneChanged( GluonEngine::Scene* ) ) );
- connect( GluonEngine::Game::instance(), SIGNAL( updated( int ) ), d->model, SIGNAL( layoutChanged() ) );
+ connect( GluonEngine::Game::instance(), SIGNAL(currentSceneChanged(GluonEngine::Scene*)), SLOT(sceneChanged(GluonEngine::Scene*)) );
+ connect( GluonEngine::Game::instance(), SIGNAL(updated(int)), d->model, SIGNAL(layoutChanged()) );
d->view->setModel( d->model );
d->view->setHeaderHidden( true );
@@ -79,8 +79,8 @@ SceneDock::SceneDock( const QString& title, QWidget* parent, Qt::WindowFlags fla
d->view->setDragDropMode( QAbstractItemView::DragDrop );
d->view->setSelectionMode( QAbstractItemView::ExtendedSelection );
d->view->setContextMenuPolicy( Qt::ActionsContextMenu );
- connect( d->view->selectionModel(), SIGNAL( selectionChanged( QItemSelection, QItemSelection ) ), SLOT( selectionChanged( QItemSelection, QItemSelection ) ) );
- connect( SelectionManager::instance(), SIGNAL( selectionChanged( SelectionManager::SelectionList ) ), SLOT( selectionChanged( SelectionManager::SelectionList ) ) );
+ connect( d->view->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), SLOT(selectionChanged(QItemSelection,QItemSelection)) );
+ connect( SelectionManager::instance(), SIGNAL(selectionChanged(SelectionManager::SelectionList)), SLOT(selectionChanged(SelectionManager::SelectionList)) );
QWidget* widget = new QWidget( this );
QVBoxLayout* layout = new QVBoxLayout();
@@ -91,14 +91,14 @@ SceneDock::SceneDock( const QString& title, QWidget* parent, Qt::WindowFlags fla
KToolBar* toolBar = new KToolBar( this );
toolBar->setIconDimensions( 16 );
- QAction* newGameObject = toolBar->addAction( KIcon( "document-new" ), i18n( "New Game Object" ), this, SLOT( newGameObjectAction() ) );
+ QAction* newGameObject = toolBar->addAction( KIcon( "document-new" ), i18n( "New Game Object" ), this, SLOT(newGameObjectAction()) );
d->view->addAction( newGameObject );
KAction* separator = new KAction( d->view );
separator->setSeparator( true );
d->view->addAction( separator );
- QAction* deleteAction = toolBar->addAction( KIcon( "edit-delete" ), i18n( "Delete" ), this, SLOT( deleteSelection() ) );
+ QAction* deleteAction = toolBar->addAction( KIcon( "edit-delete" ), i18n( "Delete" ), this, SLOT(deleteSelection()) );
d->view->addAction( deleteAction );
layout->addWidget( toolBar );
diff --git a/creator/plugins/kparts/gluoneditorpart/gluoneditorpart.cpp b/creator/plugins/kparts/gluoneditorpart/gluoneditorpart.cpp
index 07306ee..2aad938 100644
--- a/creator/plugins/kparts/gluoneditorpart/gluoneditorpart.cpp
+++ b/creator/plugins/kparts/gluoneditorpart/gluoneditorpart.cpp
@@ -59,9 +59,9 @@ GluonCreator::GluonEditorPart::GluonEditorPart( QWidget* /* parentWidget */, QOb
d->widget = new GluonGraphics::RenderWidget();
setWidget( d->widget );
- connect( GluonGraphics::Engine::instance(), SIGNAL( currentViewportChanging( Viewport* ) ),
- SLOT( newViewport( Viewport* ) ) );
- connect( GluonEngine::Game::instance(), SIGNAL( painted( int ) ), d->widget, SLOT( updateGL() ) );
+ connect( GluonGraphics::Engine::instance(), SIGNAL(currentViewportChanging(Viewport*)),
+ SLOT(newViewport(Viewport*)) );
+ connect( GluonEngine::Game::instance(), SIGNAL(painted(int)), d->widget, SLOT(updateGL()) );
newViewport( GluonGraphics::Engine::instance()->currentViewport() );
@@ -78,49 +78,49 @@ GluonCreator::GluonEditorPart::GluonEditorPart( QWidget* /* parentWidget */, QOb
KAction* solid = new KAction( KIcon( "draw-polyline" ), i18nc( "Draw type", "Solid" ), actionCollection() );
solid->setCheckable( true );
solid->setChecked( true );
- connect( solid, SIGNAL( triggered( bool ) ), SLOT( setSolid() ) );
+ connect( solid, SIGNAL(triggered(bool)), SLOT(setSolid()) );
group->addAction( solid );
actionCollection()->addAction( "toggleSolidAction", solid );
KAction* wire = new KAction( KIcon( "draw-line" ), i18n( "Wireframe" ), actionCollection() );
wire->setCheckable( true );
- connect( wire, SIGNAL( triggered( bool ) ), SLOT( setWireframe() ) );
+ connect( wire, SIGNAL(triggered(bool)), SLOT(setWireframe()) );
group->addAction( wire );
actionCollection()->addAction( "toggleWireframeAction", wire );
KAction* points = new KAction( KIcon( "edit-node" ), i18n( "Points" ), actionCollection() );
points->setCheckable( true );
- connect( points, SIGNAL( triggered( bool ) ), SLOT( setPoints() ) );
+ connect( points, SIGNAL(triggered(bool)), SLOT(setPoints()) );
group->addAction( points );
actionCollection()->addAction( "togglePointsAction", points );
KAction* select = new KAction( KIcon( "edit-select" ), i18nc( "General select", "Select" ), actionCollection() );
select->setCheckable( true );
- connect( select, SIGNAL( triggered( bool ) ), SLOT( setSelect() ) );
+ connect( select, SIGNAL(triggered(bool)), SLOT(setSelect()) );
group->addAction( select );
actionCollection()->addAction( "toggleSelectAction", select );
KAction* translate = new KAction( KIcon( "transform-move" ), i18n( "Translate" ), actionCollection() );
translate->setCheckable( true );
- connect( translate, SIGNAL( triggered( bool ) ), SLOT( setTranslate() ) );
+ connect( translate, SIGNAL(triggered(bool)), SLOT(setTranslate()) );
group->addAction( translate );
actionCollection()->addAction( "toggleTranslateAction", translate );
KAction* rotate = new KAction( KIcon( "transform-rotate" ), i18n( "Rotate" ), actionCollection() );
rotate->setCheckable( true );
- connect( rotate, SIGNAL( triggered( bool ) ), SLOT( setRotate() ) );
+ connect( rotate, SIGNAL(triggered(bool)), SLOT(setRotate()) );
group->addAction( rotate );
actionCollection()->addAction( "toggleRotateAction", rotate );
KAction* scale = new KAction( KIcon( "transform-scale" ), i18n( "Scale" ), actionCollection() );
scale->setCheckable( true );
- connect( scale, SIGNAL( triggered( bool ) ), SLOT( setScale() ) );
+ connect( scale, SIGNAL(triggered(bool)), SLOT(setScale()) );
group->addAction( scale );
actionCollection()->addAction( "toggleScaleAction", scale );
KAction* snap = new KAction( KIcon( "snap-orto" ), i18n( "Snap" ), actionCollection() );
snap->setCheckable( true );
- connect( snap, SIGNAL( triggered( bool ) ), SLOT( setSnap() ) );
+ connect( snap, SIGNAL(triggered(bool)), SLOT(setSnap()) );
group->addAction( snap );
actionCollection()->addAction( "toggleSnapAction", snap );
@@ -145,7 +145,7 @@ bool GluonCreator::GluonEditorPart::openFile()
if( d->autoplay )
{
- QTimer::singleShot( 100, this, SLOT( startGame() ) );
+ QTimer::singleShot( 100, this, SLOT(startGame()) );
}
return true;
@@ -194,8 +194,8 @@ void GluonEditorPart::setSnap()
void GluonEditorPart::newViewport( Viewport* viewport )
{
- disconnect( GluonGraphics::Engine::instance()->currentViewport(), 0, this, SLOT( redraw() ) );
- connect( viewport, SIGNAL( viewportSizeChanged( int, int, int, int ) ), SLOT( redraw() ) );
+ disconnect( GluonGraphics::Engine::instance()->currentViewport(), 0, this, SLOT(redraw()) );
+ connect( viewport, SIGNAL(viewportSizeChanged(int,int,int,int)), SLOT(redraw()) );
}
void GluonEditorPart::redraw()
diff --git a/creator/plugins/kparts/gluonviewerpart/gluonviewerpart.cpp b/creator/plugins/kparts/gluonviewerpart/gluonviewerpart.cpp
index 1298087..a1ec57a 100644
--- a/creator/plugins/kparts/gluonviewerpart/gluonviewerpart.cpp
+++ b/creator/plugins/kparts/gluonviewerpart/gluonviewerpart.cpp
@@ -64,9 +64,9 @@ GluonCreator::GluonViewerPart::GluonViewerPart( QWidget* /* parentWidget */, QOb
setWidget( d->widget );
- connect( GluonGraphics::Engine::instance(), SIGNAL( currentViewportChanging( Viewport* ) ),
- SLOT( newViewport( Viewport* ) ) );
- connect( GluonEngine::Game::instance(), SIGNAL( painted( int ) ), d->widget, SLOT( updateGL() ) );
+ connect( GluonGraphics::Engine::instance(), SIGNAL(currentViewportChanging(Viewport*)),
+ SLOT(newViewport(Viewport*)) );
+ connect( GluonEngine::Game::instance(), SIGNAL(painted(int)), d->widget, SLOT(updateGL()) );
newViewport( GluonGraphics::Engine::instance()->currentViewport() );
@@ -83,19 +83,19 @@ GluonCreator::GluonViewerPart::GluonViewerPart( QWidget* /* parentWidget */, QOb
KAction* solid = new KAction( KIcon( "draw-polyline" ), i18nc( "Draw type", "Solid" ), actionCollection() );
solid->setCheckable( true );
solid->setChecked( true );
- connect( solid, SIGNAL( triggered( bool ) ), SLOT( setSolid() ) );
+ connect( solid, SIGNAL(triggered(bool)), SLOT(setSolid()) );
group->addAction( solid );
actionCollection()->addAction( "toggleSolidAction", solid );
KAction* wire = new KAction( KIcon( "draw-line" ), i18n( "Wireframe" ), actionCollection() );
wire->setCheckable( true );
- connect( wire, SIGNAL( triggered( bool ) ), SLOT( setWireframe() ) );
+ connect( wire, SIGNAL(triggered(bool)), SLOT(setWireframe()) );
group->addAction( wire );
actionCollection()->addAction( "toggleWireframeAction", wire );
KAction* points = new KAction( KIcon( "edit-node" ), i18n( "Points" ), actionCollection() );
points->setCheckable( true );
- connect( points, SIGNAL( triggered( bool ) ), SLOT( setPoints() ) );
+ connect( points, SIGNAL(triggered(bool)), SLOT(setPoints()) );
group->addAction( points );
actionCollection()->addAction( "togglePointsAction", points );
@@ -121,7 +121,7 @@ bool GluonCreator::GluonViewerPart::openFile()
if( d->autoplay )
{
- QTimer::singleShot( 100, this, SLOT( startGame() ) );
+ QTimer::singleShot( 100, this, SLOT(startGame()) );
}
return true;
@@ -150,8 +150,8 @@ void GluonViewerPart::setPoints()
void GluonViewerPart::newViewport( Viewport* viewport )
{
- disconnect( GluonGraphics::Engine::instance()->currentViewport(), 0, this, SLOT( redraw() ) );
- connect( viewport, SIGNAL( viewportSizeChanged( int, int, int, int ) ), SLOT( redraw() ) );
+ disconnect( GluonGraphics::Engine::instance()->currentViewport(), 0, this, SLOT(redraw()) );
+ connect( viewport, SIGNAL(viewportSizeChanged(int,int,int,int)), SLOT(redraw()) );
}
void GluonViewerPart::redraw()
diff --git a/creator/plugins/tools/vcs/vcstool.cpp b/creator/plugins/tools/vcs/vcstool.cpp
index 3dba96c..a36647c 100644
--- a/creator/plugins/tools/vcs/vcstool.cpp
+++ b/creator/plugins/tools/vcs/vcstool.cpp
@@ -87,7 +87,7 @@ VcsTool::VcsTool( const QString& title, QWidget* parent, Qt::WindowFlags flags )
setWindowTitle( title );
setObjectName( "VcsTool" );
setupActions( );
- connect( GluonEngine::Game::instance(), SIGNAL( currentProjectChanged( GluonEngine::GameProject* ) ), SLOT( currentProjectChanged( GluonEngine::GameProject* ) ) );
+ connect( GluonEngine::Game::instance(), SIGNAL(currentProjectChanged(GluonEngine::GameProject*)), SLOT(currentProjectChanged(GluonEngine::GameProject*)) );
}
VcsTool::~VcsTool()
@@ -99,27 +99,27 @@ void VcsTool::setupActions()
KAction* vcsToolCommit = new KAction( KIcon( "svn-commit" ), i18n( "Commit" ), this );
vcsToolCommit->setObjectName( "VcsToolCommit" );
insertAction( 0, vcsToolCommit );
- connect( vcsToolCommit, SIGNAL( triggered( bool ) ), SLOT( commit() ) );
+ connect( vcsToolCommit, SIGNAL(triggered(bool)), SLOT(commit()) );
KAction* vcsToolDiff = new KAction( i18n( "Diff" ), this );
vcsToolDiff->setObjectName( "VcsToolDiff" );
insertAction( 0, vcsToolDiff );
- connect( vcsToolDiff, SIGNAL( triggered( bool ) ), SLOT( diff() ) );
+ connect( vcsToolDiff, SIGNAL(triggered(bool)), SLOT(diff()) );
KAction* vcsToolLog = new KAction( KIcon( "view-history" ), i18n( "Log" ), this );
vcsToolLog->setObjectName( "VcsToolLog" );
insertAction( 0, vcsToolLog );
- connect( vcsToolLog, SIGNAL( triggered( bool ) ), SLOT( log() ) );
+ connect( vcsToolLog, SIGNAL(triggered(bool)), SLOT(log()) );
KAction* vcsToolPush = new KAction( KIcon( "arrow-up-double" ), i18n( "Push" ), this );
vcsToolPush->setObjectName( "VcsToolPush" );
insertAction( 0, vcsToolPush );
- connect( vcsToolPush, SIGNAL( triggered( bool ) ), SLOT( push() ) );
+ connect( vcsToolPush, SIGNAL(triggered(bool)), SLOT(push()) );
KAction* vcsToolPull = new KAction( KIcon( "arrow-down-double" ), i18n( "Pull" ), this );
vcsToolPull->setObjectName( "VcsToolPull" );
insertAction( 0, vcsToolPull );
- connect( vcsToolPull, SIGNAL( triggered( bool ) ), SLOT( pull() ) );
+ connect( vcsToolPull, SIGNAL(triggered(bool)), SLOT(pull()) );
}
void VcsTool::commit()
@@ -131,8 +131,8 @@ void VcsTool::commit()
VcsCommitDialog* vcsCommitWidget = new VcsCommitDialog();
dialog->setMainWidget( vcsCommitWidget );
dialog->show();
- connect( dialog, SIGNAL( okClicked() ), dialog, SLOT( ok() ) );
- connect( dialog, SIGNAL( cancelClicked() ), dialog, SLOT( cancel() ) );
+ connect( dialog, SIGNAL(okClicked()), dialog, SLOT(ok()) );
+ connect( dialog, SIGNAL(cancelClicked()), dialog, SLOT(cancel()) );
}
void VcsTool::diff()
@@ -144,8 +144,8 @@ void VcsTool::diff()
VcsDiffWidget* vcsDiffWidget = new VcsDiffWidget( 0, 0 );
dialog->setMainWidget( vcsDiffWidget );
dialog->show();
- connect( dialog, SIGNAL( okClicked() ), dialog, SLOT( ok() ) );
- connect( dialog, SIGNAL( cancelClicked() ), dialog, SLOT( cancel() ) );
+ connect( dialog, SIGNAL(okClicked()), dialog, SLOT(ok()) );
+ connect( dialog, SIGNAL(cancelClicked()), dialog, SLOT(cancel()) );
}
void VcsTool::log()
@@ -157,8 +157,8 @@ void VcsTool::log()
VcsLogWidget* vcsLogWidget = new VcsLogWidget( KUrl(), 0, 0 );
dialog->setMainWidget( vcsLogWidget );
dialog->show();
- connect( dialog, SIGNAL( okClicked() ), dialog, SLOT( ok() ) );
- connect( dialog, SIGNAL( cancelClicked() ), dialog, SLOT( cancel() ) );
+ connect( dialog, SIGNAL(okClicked()), dialog, SLOT(ok()) );
+ connect( dialog, SIGNAL(cancelClicked()), dialog, SLOT(cancel()) );
}
void VcsTool::push()
diff --git a/creator/plugins/tools/vcs/widgets/vcscommitdialog.cpp b/creator/plugins/tools/vcs/widgets/vcscommitdialog.cpp
index d6c96f6..769348f 100644
--- a/creator/plugins/tools/vcs/widgets/vcscommitdialog.cpp
+++ b/creator/plugins/tools/vcs/widgets/vcscommitdialog.cpp
@@ -103,8 +103,8 @@ VcsCommitDialog::VcsCommitDialog( KDevelop::IPlugin* plugin, QWidget* parent )
files->resizeColumnToContents( 0 );
files->resizeColumnToContents( 1 );
currMessage->selectAll();
- // connect(this, SIGNAL( okClicked() ), SLOT( ok() ) );
- // connect(this, SIGNAL( cancelClicked() ), SLOT( cancel() ) );
+ // connect(this, SIGNAL(okClicked()), SLOT(ok()) );
+ // connect(this, SIGNAL(cancelClicked()), SLOT(cancel()) );
}
VcsCommitDialog::VcsCommitDialog( QWidget* parent )
@@ -120,8 +120,8 @@ VcsCommitDialog::VcsCommitDialog( QWidget* parent )
files->resizeColumnToContents( 0 );
files->resizeColumnToContents( 1 );
currMessage->selectAll();
- // connect(this, SIGNAL( okClicked() ), SLOT( ok() ) );
- // connect(this, SIGNAL( cancelClicked() ), SLOT( cancel() ) );
+ // connect(this, SIGNAL(okClicked()), SLOT(ok()) );
+ // connect(this, SIGNAL(cancelClicked()), SLOT(cancel()) );
}
VcsCommitDialog::~VcsCommitDialog()
@@ -234,7 +234,7 @@ void VcsCommitDialog::setCommitCandidatesAndShow( const KUrl& url )
KDevelop::VcsRevision::createSpecialRevision( KDevelop::VcsRevision::Base ),
KDevelop::VcsRevision::createSpecialRevision( KDevelop::VcsRevision::Working ) );
- connect( job, SIGNAL( finished( KJob* ) ), SLOT( commitDiffJobFinished( KJob* ) ) );
+ connect( job, SIGNAL(finished(KJob*)), SLOT(commitDiffJobFinished(KJob*)) );
job->exec();
}
@@ -383,7 +383,7 @@ void VcsCommitDialog::setupUi()
gridLayout->addWidget( label3, 1, 0, 1, 1 );
retranslateUi();
- QObject::connect( lastMessages, SIGNAL( activated( QString ) ), currMessage, SLOT( setPlainText( QString ) ) );
+ QObject::connect( lastMessages, SIGNAL(activated(QString)), currMessage, SLOT(setPlainText(QString)) );
QMetaObject::connectSlotsByName( this );
}
diff --git a/creator/plugins/tools/vcs/widgets/vcsdiffwidget.cpp b/creator/plugins/tools/vcs/widgets/vcsdiffwidget.cpp
index f50fd04..cdfa802 100644
--- a/creator/plugins/tools/vcs/widgets/vcsdiffwidget.cpp
+++ b/creator/plugins/tools/vcs/widgets/vcsdiffwidget.cpp
@@ -39,7 +39,7 @@ VcsDiffWidget::VcsDiffWidget( KDevelop::VcsJob* job, QWidget* parent )
, m_job( job )
{
setupUi( );
- // connect( m_job, SIGNAL( resultsReady( KDevelop::VcsJob *) ), SLOT( diffReady( KDevelop::VcsJob* ) ) );
+ // connect( m_job, SIGNAL(resultsReady(KDevelop::VcsJob*)), SLOT(diffReady(KDevelop::VcsJob*)) );
// ICore::self()->runController()->registerJob( m_job );
}
diff --git a/creator/plugins/tools/vcs/widgets/vcslogwidget.cpp b/creator/plugins/tools/vcs/widgets/vcslogwidget.cpp
index d10b4ee..27f4e29 100644
--- a/creator/plugins/tools/vcs/widgets/vcslogwidget.cpp
+++ b/creator/plugins/tools/vcs/widgets/vcslogwidget.cpp
@@ -74,15 +74,15 @@ VcsLogWidget::VcsLogWidget( const KUrl& url, KDevelop::VcsJob* job, QWidget* par
header->setResizeMode( 3, QHeaderView::Stretch );
header->setResizeMode( 4, QHeaderView::ResizeToContents );
- connect( m_eventView, SIGNAL( clicked( const QModelIndex& ) ),
- SLOT( eventViewClicked( const QModelIndex& ) ) );
- connect( m_eventView->selectionModel(), SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ),
- SLOT( currentRowChanged( QModelIndex, QModelIndex ) ) );
- connect( m_eventView, SIGNAL( customContextMenuRequested( const QPoint& ) ),
- SLOT( eventViewCustomContextMenuRequested( const QPoint& ) ) );
-
- connect( m_job, SIGNAL( resultsReady( KDevelop::VcsJob* ) ),
- SLOT( jobReceivedResults( KDevelop::VcsJob* ) ) );
+ connect( m_eventView, SIGNAL(clicked(QModelIndex)),
+ SLOT(eventViewClicked(QModelIndex)) );
+ connect( m_eventView->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)),
+ SLOT(currentRowChanged(QModelIndex,QModelIndex)) );
+ connect( m_eventView, SIGNAL(customContextMenuRequested(QPoint)),
+ SLOT(eventViewCustomContextMenuRequested(QPoint)) );
+
+ connect( m_job, SIGNAL(resultsReady(KDevelop::VcsJob*)),
+ SLOT(jobReceivedResults(KDevelop::VcsJob*)) );
// KDevelop::ICore::self()->runController()->registerJob( m_job );
}
@@ -104,10 +104,10 @@ void VcsLogWidget::eventViewCustomContextMenuRequested( const QPoint& point )
KMenu menu( m_eventView );
QAction* action = menu.addAction( i18n( "Diff to previous revision" ) );
- QObject::connect( action, SIGNAL( triggered( bool ) ), SLOT( diffToPrevious() ) );
+ QObject::connect( action, SIGNAL(triggered(bool)), SLOT(diffToPrevious()) );
action = menu.addAction( i18n( "Diff between revisions" ) );
- QObject::connect( action, SIGNAL( triggered( bool ) ), SLOT( diffRevisions() ) );
+ QObject::connect( action, SIGNAL(triggered(bool)), SLOT(diffRevisions()) );
action->setEnabled( m_eventView->selectionModel()->selectedRows().size() >= 2 );
menu.exec( m_eventView->viewport()->mapToGlobal( point ) );
@@ -168,7 +168,7 @@ void VcsLogWidget::diffToPrevious()
widget->setRevisions( prev, ev.revision() );
KDialog* dlg = new KDialog( this );
- widget->connect( widget, SIGNAL( destroyed( QObject* ) ), dlg, SLOT( deleteLater() ) );
+ widget->connect( widget, SIGNAL(destroyed(QObject*)), dlg, SLOT(deleteLater()) );
dlg->setCaption( i18n( "Difference To Previous" ) );
dlg->setButtons( KDialog::Ok );
diff --git a/engine/abstractstatistic.cpp b/engine/abstractstatistic.cpp
index 925859c..31e3df8 100644
--- a/engine/abstractstatistic.cpp
+++ b/engine/abstractstatistic.cpp
@@ -81,7 +81,7 @@ void AbstractStatistic::initialize()
if( d->userName.isEmpty() )
d->userName = p->userName();
- connect(p, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(invalidate()) );
+ connect(p, SIGNAL(nameChanged(QString,QString)), this, SLOT(invalidate()) );
d->database = DatabaseManager::instance()->openStatisticDatabase(path, d->userName, gameName);
if( d->database.isEmpty() )
return;
diff --git a/engine/assets/graphics/material/materialasset.cpp b/engine/assets/graphics/material/materialasset.cpp
index b33465e..136a142 100644
--- a/engine/assets/graphics/material/materialasset.cpp
+++ b/engine/assets/graphics/material/materialasset.cpp
@@ -49,7 +49,7 @@ MaterialAsset::MaterialAsset( QObject* parent )
, d( new MaterialAssetPrivate )
{
QAction* newInstance = new QAction( "New instance", 0 );
- connect( newInstance, SIGNAL( triggered( bool ) ), SLOT( createInstance() ) );
+ connect( newInstance, SIGNAL(triggered(bool)), SLOT(createInstance()) );
d->actions.append( newInstance );
}
diff --git a/engine/components/graphics/uimanager/renderablescene.cpp b/engine/components/graphics/uimanager/renderablescene.cpp
index 6615d8b..fb0a442 100644
--- a/engine/components/graphics/uimanager/renderablescene.cpp
+++ b/engine/components/graphics/uimanager/renderablescene.cpp
@@ -58,10 +58,10 @@ class RenderableScene::RenderableScenePrivate
void newViewport( Viewport* viewport )
{
- q->disconnect( Engine::instance()->currentViewport(), SIGNAL( viewportSizeChanged( int, int, int, int ) ),
- q, SLOT( viewportSizeChanged( int, int, int, int ) ) );
- q->connect( viewport, SIGNAL( viewportSizeChanged( int, int, int, int ) ),
- q, SLOT( viewportSizeChanged( int, int, int, int ) ) );
+ q->disconnect( Engine::instance()->currentViewport(), SIGNAL(viewportSizeChanged(int,int,int,int)),
+ q, SLOT(viewportSizeChanged(int,int,int,int)) );
+ q->connect( viewport, SIGNAL(viewportSizeChanged(int,int,int,int)),
+ q, SLOT(viewportSizeChanged(int,int,int,int)) );
}
void viewportSizeChanged( int left, int bottom, int width, int height )
@@ -84,15 +84,15 @@ RenderableScene::RenderableScene( QObject* parent )
: QGraphicsScene( parent )
, d( new RenderableScenePrivate( this ) )
{
- connect( this, SIGNAL( changed( QList<QRectF> ) ), this, SLOT( repaintNeeded() ) );
- connect( this, SIGNAL( sceneRectChanged( QRectF ) ), this, SLOT( repaintNeeded() ) );
- connect( d->target, SIGNAL( framebufferChanged() ), this, SLOT( repaintNeeded() ) );
-
- connect( Engine::instance(), SIGNAL( currentViewportChanging( Viewport* ) ),
- this, SLOT( newViewport( Viewport* ) ) );
- connect( Engine::instance()->currentViewport(), SIGNAL( viewportSizeChanged( int, int, int, int ) ),
- this, SLOT( viewportSizeChanged( int, int, int, int ) ) );
- connect( GluonInput::InputManager::instance(), SIGNAL( eventFiltered( QEvent* ) ), SLOT( deliverEvent( QEvent* ) ) );
+ connect( this, SIGNAL(changed(QList<QRectF>)), this, SLOT(repaintNeeded()) );
+ connect( this, SIGNAL(sceneRectChanged(QRectF)), this, SLOT(repaintNeeded()) );
+ connect( d->target, SIGNAL(framebufferChanged()), this, SLOT(repaintNeeded()) );
+
+ connect( Engine::instance(), SIGNAL(currentViewportChanging(Viewport*)),
+ this, SLOT(newViewport(Viewport*)) );
+ connect( Engine::instance()->currentViewport(), SIGNAL(viewportSizeChanged(int,int,int,int)),
+ this, SLOT(viewportSizeChanged(int,int,int,int)) );
+ connect( GluonInput::InputManager::instance(), SIGNAL(eventFiltered(QEvent*)), SLOT(deliverEvent(QEvent*)) );
Engine::instance()->addRenderTarget( d->target, 0 );
}
diff --git a/engine/components/graphics/uimanager/uimanagercomponent.cpp b/engine/components/graphics/uimanager/uimanagercomponent.cpp
index fda4db8..fc923dd 100644
--- a/engine/components/graphics/uimanager/uimanagercomponent.cpp
+++ b/engine/components/graphics/uimanager/uimanagercomponent.cpp
@@ -183,8 +183,8 @@ void UiManagerComponent::initialize()
if( !d->scene )
{
d->scene = new RenderableScene( );
- connect( d->scene, SIGNAL( sceneRectChanged( const QRectF& ) ),
- this, SLOT( resizeQmlItem( const QRectF& ) ) );
+ connect( d->scene, SIGNAL(sceneRectChanged(QRectF)),
+ this, SLOT(resizeQmlItem(QRectF)) );
}
if( d->ui )
@@ -325,7 +325,7 @@ void UiManagerComponent::setUi( UiAsset* ui )
if( d->ui )
d->ui->ref();
- connect( ui, SIGNAL( dataChanged() ), this, SLOT( reload() ) );
+ connect( ui, SIGNAL(dataChanged()), this, SLOT(reload()) );
}
UiAsset* UiManagerComponent::ui() const
diff --git a/engine/components/other/spherecollision/spherecollisioncomponent.cpp b/engine/components/other/spherecollision/spherecollisioncomponent.cpp
index 85b2ff6..ef12869 100644
--- a/engine/components/other/spherecollision/spherecollisioncomponent.cpp
+++ b/engine/components/other/spherecollision/spherecollisioncomponent.cpp
@@ -78,7 +78,7 @@ void SphereCollisionComponent::start()
{
if( component->enabled() && component->gameObject()->enabled() )
{
- connect( component, SIGNAL( destroyed( QObject* ) ), SLOT( componentDestroyed( QObject* ) ) );
+ connect( component, SIGNAL(destroyed(QObject*)), SLOT(componentDestroyed(QObject*)) );
static_cast<SphereCollisionComponent*>( component )->addComponent( this );
}
else
@@ -201,7 +201,7 @@ void SphereCollisionComponent::addComponent( SphereCollisionComponent* comp )
if( !d->collisionComponents.contains( comp ) )
{
d->collisionComponents.append( comp );
- connect( comp, SIGNAL( destroyed( QObject* ) ), this, SLOT( componentDestroyed( QObject* ) ) );
+ connect( comp, SIGNAL(destroyed(QObject*)), this, SLOT(componentDestroyed(QObject*)) );
}
}
}
diff --git a/engine/components/scripting/scriptingcomponent.cpp b/engine/components/scripting/scriptingcomponent.cpp
index f5dc7f7..d5f31f1 100644
--- a/engine/components/scripting/scriptingcomponent.cpp
+++ b/engine/components/scripting/scriptingcomponent.cpp
@@ -60,14 +60,14 @@ void ScriptingComponent::setScript( GluonEngine::ScriptingAsset* newAsset )
{
if( d->scriptingAsset )
{
- disconnect( d->scriptingAsset, SIGNAL( dataChanged() ), this, SLOT( scriptAssetUpdated() ) );
+ disconnect( d->scriptingAsset, SIGNAL(dataChanged()), this, SLOT(scriptAssetUpdated()) );
d->scriptingAsset->deref();
}
d->scriptingAsset = newAsset;
if( d->scriptingAsset )
{
- connect( newAsset, SIGNAL( dataChanged() ), SLOT( scriptAssetUpdated() ) );
+ connect( newAsset, SIGNAL(dataChanged()), SLOT(scriptAssetUpdated()) );
d->scriptingAsset->ref();
}
}
diff --git a/engine/game.cpp b/engine/game.cpp
index b542bdd..27c73ec 100644
--- a/engine/game.cpp
+++ b/engine/game.cpp
@@ -297,7 +297,7 @@ void Game::resetCurrentScene()
{
if( d->currentScene )
{
- QTimer::singleShot( 0, d->currentScene, SLOT( resetScene() ) );
+ QTimer::singleShot( 0, d->currentScene, SLOT(resetScene()) );
}
}
@@ -319,7 +319,7 @@ Game::setGameProject( GluonEngine::GameProject* newGameProject )
stopAll();
cleanupAll();
}
- disconnect( d->gameProject, SIGNAL( showDebug( const QString& ) ), this, SIGNAL( showDebug( const QString& ) ) );
+ disconnect( d->gameProject, SIGNAL(showDebug(QString)), this, SIGNAL(showDebug(QString)) );
}
d->gameProject = newGameProject;
@@ -327,7 +327,7 @@ Game::setGameProject( GluonEngine::GameProject* newGameProject )
if( !d->gameProject )
return;
- connect( d->gameProject, SIGNAL( showDebug( const QString& ) ), SIGNAL( showDebug( const QString& ) ) );
+ connect( d->gameProject, SIGNAL(showDebug(QString)), SIGNAL(showDebug(QString)) );
if( !d->gameProject->entryPoint() )
{
@@ -367,7 +367,7 @@ GameObject* Game::clone( GameObject* obj )
QList<const GluonCore::GluonObject*> objects = d->listAllChildren( objClone );
foreach( const GluonCore::GluonObject * child, objects )
{
- connect( child, SIGNAL( showDebug( const QString& ) ), SIGNAL( showDebug( const QString& ) ) );
+ connect( child, SIGNAL(showDebug(QString)), SIGNAL(showDebug(QString)) );
}
return objClone;
}
diff --git a/engine/gameproject.cpp b/engine/gameproject.cpp
index add6bd9..717439f 100644
--- a/engine/gameproject.cpp
+++ b/engine/gameproject.cpp
@@ -65,13 +65,13 @@ GameProject::addChild( GluonObject* child )
{
GluonCore::GluonObject::addChild( child );
- connect( child, SIGNAL( showDebug( const QString& ) ), Game::instance(), SIGNAL( showDebug( const QString& ) ) );
+ connect( child, SIGNAL(showDebug(QString)), Game::instance(), SIGNAL(showDebug(QString)) );
}
bool
GameProject::removeChild( GluonObject* child )
{
- disconnect( child, SIGNAL( showDebug( const QString& ) ), Game::instance(), SIGNAL( showDebug( const QString& ) ) );
+ disconnect( child, SIGNAL(showDebug(QString)), Game::instance(), SIGNAL(showDebug(QString)) );
return GluonCore::GluonObject::removeChild( child );
}
diff --git a/engine/prefabinstance.cpp b/engine/prefabinstance.cpp
index 03e902b..1fcfd42 100644
--- a/engine/prefabinstance.cpp
+++ b/engine/prefabinstance.cpp
@@ -125,43 +125,43 @@ void PrefabInstance::rebuildInstance()
void PrefabInstance::addChild(GameObject* child)
{
- connect(child, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ connect(child, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
GluonEngine::GameObject::addChild(child);
}
void PrefabInstance::addChild(GluonCore::GluonObject* child)
{
- connect(child, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ connect(child, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
GluonEngine::GameObject::addChild(child);
}
void PrefabInstance::addChildAt(GluonCore::GluonObject* child, int position)
{
- connect(child, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ connect(child, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
GluonCore::GluonObject::addChildAt(child, position);
}
bool PrefabInstance::removeChild(GameObject* child)
{
- disconnect(child, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ disconnect(child, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
return GluonEngine::GameObject::removeChild(child);
}
bool PrefabInstance::removeChild(GluonCore::GluonObject* child)
{
- disconnect(child, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ disconnect(child, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
return GluonEngine::GameObject::removeChild(child);
}
void PrefabInstance::addComponent(Component* addThis)
{
- connect(addThis, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ connect(addThis, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
GluonEngine::GameObject::addComponent(addThis);
}
bool PrefabInstance::removeComponent(Component* removeThis)
{
- connect(removeThis, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ connect(removeThis, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
return GluonEngine::GameObject::removeComponent(removeThis);
}
diff --git a/engine/prefabinstancechild.cpp b/engine/prefabinstancechild.cpp
index 0c4e748..bbee08c 100644
--- a/engine/prefabinstancechild.cpp
+++ b/engine/prefabinstancechild.cpp
@@ -122,43 +122,43 @@ void PrefabInstanceChild::resetProperties()
void PrefabInstanceChild::addChild(GameObject* child)
{
- connect(child, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ connect(child, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
GluonEngine::GameObject::addChild(child);
}
void PrefabInstanceChild::addChild(GluonCore::GluonObject* child)
{
- connect(child, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ connect(child, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
GluonEngine::GameObject::addChild(child);
}
void PrefabInstanceChild::addChildAt(GluonCore::GluonObject* child, int position)
{
- connect(child, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ connect(child, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
GluonCore::GluonObject::addChildAt(child, position);
}
bool PrefabInstanceChild::removeChild(GameObject* child)
{
- disconnect(child, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ disconnect(child, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
return GluonEngine::GameObject::removeChild(child);
}
bool PrefabInstanceChild::removeChild(GluonCore::GluonObject* child)
{
- disconnect(child, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ disconnect(child, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
return GluonEngine::GameObject::removeChild(child);
}
void PrefabInstanceChild::addComponent(Component* addThis)
{
- connect(addThis, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ connect(addThis, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
GluonEngine::GameObject::addComponent(addThis);
}
bool PrefabInstanceChild::removeComponent(Component* removeThis)
{
- connect(removeThis, SIGNAL(nameChanged(const QString&, const QString&)), this, SLOT(childNameChanged(const QString&, const QString&)));
+ connect(removeThis, SIGNAL(nameChanged(QString,QString)), this, SLOT(childNameChanged(QString,QString)));
return GluonEngine::GameObject::removeComponent(removeThis);
}
diff --git a/engine/scene.cpp b/engine/scene.cpp
index 1a849a7..8ed6ddb 100644
--- a/engine/scene.cpp
+++ b/engine/scene.cpp
@@ -98,7 +98,7 @@ QList< QAction* > Scene::actions()
{
QList<QAction*> actions;
QAction* setEntryPoint = new QAction( "Set as entry point", this );
- connect( setEntryPoint, SIGNAL( triggered( bool ) ), this, SLOT( setEntryPoint() ) );
+ connect( setEntryPoint, SIGNAL(triggered(bool)), this, SLOT(setEntryPoint()) );
actions.append( setEntryPoint );
return actions;
}
diff --git a/graphics/engine.cpp b/graphics/engine.cpp
index 881b1f7..effcef3 100644
--- a/graphics/engine.cpp
+++ b/graphics/engine.cpp
@@ -420,7 +420,7 @@ Engine::setViewport( Viewport* viewport )
emit currentViewportChanging( viewport );
d->objectMutex.lock();
d->viewport = viewport;
- connect( d->viewport, SIGNAL( viewportSizeChanged( int, int, int, int ) ), this, SLOT( viewportSizeChanged( int, int, int, int ) ) );
+ connect( d->viewport, SIGNAL(viewportSizeChanged(int,int,int,int)), this, SLOT(viewportSizeChanged(int,int,int,int)) );
d->objectMutex.unlock();
}
@@ -428,7 +428,7 @@ Engine::Engine( QObject* parent )
: GluonCore::Singleton< GluonGraphics::Engine >( parent ), d( new EnginePrivate() )
{
setViewport( new Viewport() );
- connect( this, SIGNAL( activeCameraChanging( Camera* ) ), d->viewport, SLOT( update() ) );
+ connect( this, SIGNAL(activeCameraChanging(Camera*)), d->viewport, SLOT(update()) );
}
Engine::~Engine()
diff --git a/graphics/examples/basic/main.cpp b/graphics/examples/basic/main.cpp
index a22750e..8bfd108 100644
--- a/graphics/examples/basic/main.cpp
+++ b/graphics/examples/basic/main.cpp
@@ -62,6 +62,6 @@ int main( int argc, char* argv[] )
mat.translate( 3.f, 3.f );
item->setTransform( mat );
- QTimer::singleShot( 0, widget, SLOT( updateGL() ) );
+ QTimer::singleShot( 0, widget, SLOT(updateGL()) );
return app.exec();
}
diff --git a/graphics/examples/filemesh/main.cpp b/graphics/examples/filemesh/main.cpp
index 1d03b25..9709507 100644
--- a/graphics/examples/filemesh/main.cpp
+++ b/graphics/examples/filemesh/main.cpp
@@ -71,6 +71,6 @@ int main( int argc, char* argv[] )
matrix.rotate(-45.f, 0.f, 1.f, 0.f);
item->setTransform(matrix);
- QTimer::singleShot( 0, widget, SLOT( updateGL() ) );
+ QTimer::singleShot( 0, widget, SLOT(updateGL()) );
return app.exec();
}
diff --git a/graphics/examples/loadtexture/main.cpp b/graphics/examples/loadtexture/main.cpp
index f136808..d28db69 100644
--- a/graphics/examples/loadtexture/main.cpp
+++ b/graphics/examples/loadtexture/main.cpp
@@ -93,6 +93,6 @@ int main( int argc, char* argv[] )
mat2.translate( -1.5f, -1.5f );
item2->setTransform( mat2 );
- QTimer::singleShot( 0, widget, SLOT( updateGL() ) );
+ QTimer::singleShot( 0, widget, SLOT(updateGL()) );
return app.exec();
}
diff --git a/graphics/materialinstance.cpp b/graphics/materialinstance.cpp
index 2c88044..4e3313c 100644
--- a/graphics/materialinstance.cpp
+++ b/graphics/materialinstance.cpp
@@ -71,7 +71,7 @@ MaterialInstance::MaterialInstance( QObject* parent )
d( new MaterialInstancePrivate )
{
qRegisterMetaType<GluonGraphics::Texture*>( "GluonGraphics::Texture*" );
- connect( Engine::instance(), SIGNAL( activeCameraChanging( Camera* ) ), this, SLOT( setActiveCamera( Camera* ) ) );
+ connect( Engine::instance(), SIGNAL(activeCameraChanging(Camera*)), this, SLOT(setActiveCamera(Camera*)) );
}
MaterialInstance::~MaterialInstance()
diff --git a/input/custominput.cpp b/input/custominput.cpp
index 0471922..8ee15d4 100644
--- a/input/custominput.cpp
+++ b/input/custominput.cpp
@@ -45,7 +45,7 @@ void CustomInput::setButton( const QString& name, InputDevice* input, int keyCod
qDebug() << "Cannot find keyCode for this input...";
return;
}
- connect( input, SIGNAL( eventSent( InputEvent* ) ), SLOT( inputEvent( InputEvent* ) ) );
+ connect( input, SIGNAL(eventSent(InputEvent*)), SLOT(inputEvent(InputEvent*)) );
d->m_buttons.insert( name, qMakePair( input, keyCode ) );
}
@@ -64,7 +64,7 @@ void CustomInput::setAbsAxis( const QString& name, InputDevice* input, int axis
return;
}
d->m_absAxis.insert( name, qMakePair( input, axis ) );
- connect( input, SIGNAL( eventSent( InputEvent* ) ), SLOT( inputEvent( InputEvent* ) ) );
+ connect( input, SIGNAL(eventSent(InputEvent*)), SLOT(inputEvent(InputEvent*)) );
}
void CustomInput::setRelAxis( const QString& name, InputDevice* input, int axis )
@@ -75,7 +75,7 @@ void CustomInput::setRelAxis( const QString& name, InputDevice* input, int axis
return;
}
d->m_absAxis.insert( name, qMakePair( input, axis ) );
- connect( input, SIGNAL( eventSent( InputEvent* ) ), SLOT( inputEvent( InputEvent* ) ) );
+ connect( input, SIGNAL(eventSent(InputEvent*)), SLOT(inputEvent(InputEvent*)) );
}
@@ -83,7 +83,7 @@ void CustomInput::remButton( const QString& name )
{
if( d->m_buttons.contains( name ) )
{
- disconnect( d->m_buttons[name].first, SIGNAL( eventSent( InputEvent* ) ), this, SLOT( inputEvent( InputEvent* ) ) );
+ disconnect( d->m_buttons[name].first, SIGNAL(eventSent(InputEvent*)), this, SLOT(inputEvent(InputEvent*)) );
d->m_buttons.remove( name );
}
}
@@ -92,7 +92,7 @@ void CustomInput::remAbsAxis( const QString& name )
{
if( d->m_absAxis.contains( name ) )
{
- disconnect( d->m_buttons[name].first, SIGNAL( eventSent( InputEvent* ) ), this, SLOT( inputEvent( InputEvent* ) ) );
+ disconnect( d->m_buttons[name].first, SIGNAL(eventSent(InputEvent*)), this, SLOT(inputEvent(InputEvent*)) );
d->m_absAxis.remove( name );
}
}
@@ -101,7 +101,7 @@ void CustomInput::remRelAxis( const QString& name )
{
if( d->m_relAxis.contains( name ) )
{
- disconnect( d->m_buttons[name].first, SIGNAL( eventSent( InputEvent* ) ), this, SLOT( inputEvent( InputEvent* ) ) );
+ disconnect( d->m_buttons[name].first, SIGNAL(eventSent(InputEvent*)), this, SLOT(inputEvent(InputEvent*)) );
d->m_relAxis.remove( name );
}
}
diff --git a/input/examples/devicesloop/gameloop.cpp b/input/examples/devicesloop/gameloop.cpp
index ca63e2d..28d186c 100644
--- a/input/examples/devicesloop/gameloop.cpp
+++ b/input/examples/devicesloop/gameloop.cpp
@@ -26,7 +26,7 @@
GameLoop::GameLoop( QList<InputDevice*> inputList )
: m_inputList( inputList )
{
- connect( this, SIGNAL( startGameLoop() ), SLOT( gameLoop() ), Qt::QueuedConnection );
+ connect( this, SIGNAL(startGameLoop()), SLOT(gameLoop()), Qt::QueuedConnection );
}
void GameLoop::run()
diff --git a/input/examples/keyboardloop/gameloop.cpp b/input/examples/keyboardloop/gameloop.cpp
index 044e223..bcde0f5 100644
--- a/input/examples/keyboardloop/gameloop.cpp
+++ b/input/examples/keyboardloop/gameloop.cpp
@@ -30,7 +30,7 @@
GameLoop::GameLoop( Keyboard* keyb )
{
keyboard = keyb;
- connect( this, SIGNAL( startGameLoop() ), SLOT( gameLoop() ), Qt::QueuedConnection );
+ connect( this, SIGNAL(startGameLoop()), SLOT(gameLoop()), Qt::QueuedConnection );
}
void GameLoop::run()
diff --git a/input/examples/qteventfilter/mainwindow.cpp b/input/examples/qteventfilter/mainwindow.cpp
index 05f58bf..c26098d 100644
--- a/input/examples/qteventfilter/mainwindow.cpp
+++ b/input/examples/qteventfilter/mainwindow.cpp
@@ -93,8 +93,8 @@ void MainWindow::setupUi()
GluonInput::InputManager* im = GluonInput::InputManager::instance();
im->setFilteredObject( m_textEdit );
- connect( im, SIGNAL( keyPressed( int ) ), SLOT( mKeyPressed( int ) ) );
- connect( im, SIGNAL( keyReleased( int ) ), SLOT( mKeyReleased( int ) ) );
+ connect( im, SIGNAL(keyPressed(int)), SLOT(mKeyPressed(int)) );
+ connect( im, SIGNAL(keyReleased(int)), SLOT(mKeyReleased(int)) );
return;
}
@@ -111,16 +111,16 @@ void MainWindow::createActions()
quitAct = new QAction( QIcon( ":/images/quit.png" ), tr( "&Quit" ), this );
quitAct->setShortcut( QKeySequence( Qt::CTRL + Qt::Key_Q ) );
quitAct->setStatusTip( tr( "Exit the application" ) );
- connect( quitAct, SIGNAL( triggered() ), SLOT( close() ) );
+ connect( quitAct, SIGNAL(triggered()), SLOT(close()) );
// Help related actions
aboutAct = new QAction( tr( "&About" ), this );
aboutAct->setStatusTip( tr( "Show the Gluon Tutorial 4 Application About box" ) );
- connect( aboutAct, SIGNAL( triggered() ), SLOT( mAbout() ) );
+ connect( aboutAct, SIGNAL(triggered()), SLOT(mAbout()) );
aboutQtAct = new QAction( tr( "About &Qt" ), this );
aboutQtAct->setStatusTip( tr( "Show the Qt library's About box" ) );
- connect( aboutQtAct, SIGNAL( triggered() ), qApp, SLOT( aboutQt() ) );
+ connect( aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()) );
}
void MainWindow::createMenus()
diff --git a/input/inputdevice.cpp b/input/inputdevice.cpp
index 50b3058..d78d4d3 100644
--- a/input/inputdevice.cpp
+++ b/input/inputdevice.cpp
@@ -44,7 +44,7 @@ InputDevice::InputDevice( InputThread* inputThread, QObject* parent )
d->inputThread = inputThread;
d->inputThread->setParent( this );
- connect( inputThread, SIGNAL( buttonStateChanged( int, int ) ), SLOT( buttonStateChanged( int, int ) ), Qt::DirectConnection );
+ connect( inputThread, SIGNAL(buttonStateChanged(int,int)), SLOT(buttonStateChanged(int,int)), Qt::DirectConnection );
}
}
diff --git a/input/joystick.cpp b/input/joystick.cpp
index 012dad4..956c876 100644
--- a/input/joystick.cpp
+++ b/input/joystick.cpp
@@ -27,7 +27,7 @@ Joystick::Joystick( InputThread* inputThread, QObject* parent )
: InputDevice( inputThread, parent )
, d( new JoystickPrivate )
{
- connect( inputThread, SIGNAL( absAxisMoved( int, int ) ), SLOT( joystickMoved( int, int ) ), Qt::DirectConnection );
+ connect( inputThread, SIGNAL(absAxisMoved(int,int)), SLOT(joystickMoved(int,int)), Qt::DirectConnection );
}
Joystick::Joystick( const Joystick& other, InputThread* inputThread, QObject* parent )
diff --git a/input/mouse.cpp b/input/mouse.cpp
index 33dcb8f..5cab554 100644
--- a/input/mouse.cpp
+++ b/input/mouse.cpp
@@ -33,7 +33,7 @@ Mouse::Mouse( InputThread* inputThread, QObject* parent )
d->sensibility = 1;
if( inputThread )
- connect( inputThread, SIGNAL( relAxisMoved( int, int ) ), SLOT( mouseMoved( int, int ) ), Qt::DirectConnection );
+ connect( inputThread, SIGNAL(relAxisMoved(int,int)), SLOT(mouseMoved(int,int)), Qt::DirectConnection );
}
Mouse::Mouse( const Mouse& other, InputThread* inputThread, QObject* parent )
diff --git a/player/desktop/delegates/commentitemsviewdelegate.cpp b/player/desktop/delegates/commentitemsviewdelegate.cpp
index 43b3680..6c9b40d 100644
--- a/player/desktop/delegates/commentitemsviewdelegate.cpp
+++ b/player/desktop/delegates/commentitemsviewdelegate.cpp
@@ -98,7 +98,7 @@ QList<QWidget*> CommentItemsViewDelegate::createItemWidgets() const
list << replyButton;
setBlockedEventTypes( replyButton, QList<QEvent::Type>() << QEvent::MouseButtonPress
<< QEvent::MouseButtonRelease << QEvent::MouseButtonDblClick );
- connect( replyButton, SIGNAL( clicked() ), SLOT( slotReplyClicked() ) );
+ connect( replyButton, SIGNAL(clicked()), SLOT(slotReplyClicked()) );
return list;
}
diff --git a/player/desktop/delegates/itemsviewdelegate.cpp b/player/desktop/delegates/itemsviewdelegate.cpp
index 244185f..486ee51 100644
--- a/player/desktop/delegates/itemsviewdelegate.cpp
+++ b/player/desktop/delegates/itemsviewdelegate.cpp
@@ -67,19 +67,19 @@ QList<QWidget*> ItemsViewDelegate::createItemWidgets() const
ItemsViewDelegate* delegate = const_cast<ItemsViewDelegate*>( this );
gameName->installEventFilter( delegate );
list << gameName;
- connect( gameName, SIGNAL( mouseReleased() ), SLOT( selectGameClicked() ) );
+ connect( gameName, SIGNAL(mouseReleased()), SLOT(selectGameClicked()) );
GameTextLabel* gameDescription = new GameTextLabel();
gameDescription->setOpenExternalLinks( true );
list << gameDescription;
- connect( gameDescription, SIGNAL( mouseReleased() ), SLOT( selectGameClicked() ) );
+ connect( gameDescription, SIGNAL(mouseReleased()), SLOT(selectGameClicked()) );
KPushButton* playButton = new KPushButton();
playButton->setSizePolicy( QSizePolicy::Maximum, QSizePolicy::MinimumExpanding );
list << playButton;
setBlockedEventTypes( playButton, QList<QEvent::Type>() << QEvent::MouseButtonPress
<< QEvent::MouseButtonRelease << QEvent::MouseButtonDblClick );
- connect( playButton, SIGNAL( clicked() ), SLOT( slotPlayClicked() ) );
+ connect( playButton, SIGNAL(clicked()), SLOT(slotPlayClicked()) );
return list;
}
diff --git a/player/desktop/gamedetailsoverlay.cpp b/player/desktop/gamedetailsoverlay.cpp
index ca0d6a8..59de3b6 100644
--- a/player/desktop/gamedetailsoverlay.cpp
+++ b/player/desktop/gamedetailsoverlay.cpp
@@ -45,12 +45,12 @@ GameDetailsOverlay::GameDetailsOverlay( GluonEngine::ProjectMetaData* metaData,
m_backButton->setIcon( KIcon( "go-previous-view" ) );
m_backButton->setText( i18nc( "Back to the previous view", "Back" ) );
m_backButton->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
- connect( m_backButton, SIGNAL( clicked() ), SIGNAL( back() ) );
+ connect( m_backButton, SIGNAL(clicked()), SIGNAL(back()) );
m_highScoresView->setModel( m_highScoresModel );
m_achievementsView->setModel( m_achievementsModel );
m_commentsView->setItemDelegate( m_commentsDelegate );
- connect( m_commentsDelegate, SIGNAL( commentReplyClicked( QModelIndex ) ), SLOT( showReplyForm( QModelIndex ) ) );
+ connect( m_commentsDelegate, SIGNAL(commentReplyClicked(QModelIndex)), SLOT(showReplyForm(QModelIndex)) );
m_commentsView->setModel( m_commentsModel );
QGridLayout* gl = new QGridLayout( m_commentWidget );
@@ -68,7 +68,7 @@ GameDetailsOverlay::GameDetailsOverlay( GluonEngine::ProjectMetaData* metaData,
setContentsMargins( 10, 15, 10, 15 );
setLayout( m_contentLayout );
- connect( m_commentsModel, SIGNAL( addCommentFailed() ), SLOT( commentFailed() ) );
+ connect( m_commentsModel, SIGNAL(addCommentFailed()), SLOT(commentFailed()) );
}
GameDetailsOverlay::~GameDetailsOverlay()
@@ -95,9 +95,9 @@ void GameDetailsOverlay::cancelNewComment( )
void GameDetailsOverlay::showReplyForm( const QModelIndex& index )
{
m_newCommentForm->setParentIndex( index );
- connect( m_newCommentForm, SIGNAL( accepted( QModelIndex, QString, QString ) ),
- SLOT( addNewComment( QModelIndex, QString, QString ) ) );
- connect( m_newCommentForm, SIGNAL( canceled() ), SLOT( cancelNewComment() ) );
+ connect( m_newCommentForm, SIGNAL(accepted(QModelIndex,QString,QString)),
+ SLOT(addNewComment(QModelIndex,QString,QString)) );
+ connect( m_newCommentForm, SIGNAL(canceled()), SLOT(cancelNewComment()) );
m_newCommentForm->setVisible( true );
}
diff --git a/player/desktop/gamesoverlay.cpp b/player/desktop/gamesoverlay.cpp
index d401211..dc4c326 100644
--- a/player/desktop/gamesoverlay.cpp
+++ b/player/desktop/gamesoverlay.cpp
@@ -43,8 +43,8 @@ GamesOverlay::GamesOverlay( QWidget* parent, Qt::WindowFlags wFlags )
m_model->appendPair( qMakePair( i18n( "Installed" ), new KIcon( "applications-games" ) ) );
m_gamesView->setItemDelegate( m_gamesDelegate );
- connect( m_gamesDelegate, SIGNAL( gameToPlaySelected( QModelIndex ) ), SIGNAL( gameToPlaySelected( QModelIndex ) ) );
- connect( m_gamesDelegate, SIGNAL( gameSelected( QModelIndex ) ), SLOT( showGameDetails( QModelIndex ) ) );
+ connect( m_gamesDelegate, SIGNAL(gameToPlaySelected(QModelIndex)), SIGNAL(gameToPlaySelected(QModelIndex)) );
+ connect( m_gamesDelegate, SIGNAL(gameSelected(QModelIndex)), SLOT(showGameDetails(QModelIndex)) );
m_gamesView->setModel( m_gameItemsModel );
m_stackedWidget->addWidget( m_gamesView );
@@ -61,8 +61,8 @@ GamesOverlay::GamesOverlay( QWidget* parent, Qt::WindowFlags wFlags )
m_gridLayout->setColumnStretch( 1, 3 );
setLayout( m_gridLayout );
- connect( m_view->selectionModel(), SIGNAL( currentChanged( const QModelIndex&, const QModelIndex& ) ),
- SLOT( selectionChanged( const QModelIndex&, const QModelIndex& ) ) );
+ connect( m_view->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
+ SLOT(selectionChanged(QModelIndex,QModelIndex)) );
}
GamesOverlay::~GamesOverlay()
@@ -103,5 +103,5 @@ void GamesOverlay::showGameDetails( const QModelIndex& index )
m_gameDetailsOverlay = new GameDetailsOverlay( m_gameItemsModel->installedGameInfo( index.row())->metaData(), userName, this );
m_stackedWidget->addWidget( m_gameDetailsOverlay );
m_stackedWidget->setCurrentIndex( m_stackedWidget->count() - 1 );
- connect( m_gameDetailsOverlay, SIGNAL( back() ), SLOT( backToGames() ) );
+ connect( m_gameDetailsOverlay, SIGNAL(back()), SLOT(backToGames()) );
}
diff --git a/player/desktop/loginform.cpp b/player/desktop/loginform.cpp
index 8cfe012..79b4903 100644
--- a/player/desktop/loginform.cpp
+++ b/player/desktop/loginform.cpp
@@ -66,11 +66,11 @@ LoginForm::LoginForm( QWidget* parent, Qt::WindowFlags wFlags )
// m_contentLayout->addWidget( m_usernameFeedbackLabel, 5, 0, 1, 2 );
setLayout( m_contentLayout );
- connect( m_loginButton, SIGNAL( clicked() ), SLOT( doLogin() ) );
- connect( GluonPlayer::ServiceProvider::instance(), SIGNAL( initializationFinished() ), SLOT( initDone() ) );
- connect( GluonPlayer::ServiceProvider::instance(), SIGNAL( initializeFailed() ), SLOT( initFailed() ) );
- connect( GluonPlayer::ServiceProvider::instance(), SIGNAL( loginFinished() ), SLOT( loginDone() ) );
- connect( GluonPlayer::ServiceProvider::instance(), SIGNAL( loginFailed() ), SLOT( loginFailed() ) );
+ connect( m_loginButton, SIGNAL(clicked()), SLOT(doLogin()) );
+ connect( GluonPlayer::ServiceProvider::instance(), SIGNAL(initializationFinished()), SLOT(initDone()) );
+ connect( GluonPlayer::ServiceProvider::instance(), SIGNAL(initializeFailed()), SLOT(initFailed()) );
+ connect( GluonPlayer::ServiceProvider::instance(), SIGNAL(loginFinished()), SLOT(loginDone()) );
+ connect( GluonPlayer::ServiceProvider::instance(), SIGNAL(loginFailed()), SLOT(loginFailed()) );
initialize();
}
diff --git a/player/desktop/mainwindow.cpp b/player/desktop/mainwindow.cpp
index 587c935..a293390 100644
--- a/player/desktop/mainwindow.cpp
+++ b/player/desktop/mainwindow.cpp
@@ -87,51 +87,51 @@ MainWindow::~MainWindow( )
void MainWindow::setupActions()
{
- KStandardAction::quit( this, SLOT( close() ), actionCollection() );
- KStandardAction::showMenubar( menuBar(), SLOT( setVisible( bool ) ), actionCollection() );
- KStandardAction::showStatusbar( statusBar(), SLOT( setVisible( bool ) ), actionCollection() );
+ KStandardAction::quit( this, SLOT(close()), actionCollection() );
+ KStandardAction::showMenubar( menuBar(), SLOT(setVisible(bool)), actionCollection() );
+ KStandardAction::showStatusbar( statusBar(), SLOT(setVisible(bool)), actionCollection() );
setStandardToolBarMenuEnabled( true );
createStandardStatusBarAction();
- KStandardAction::keyBindings( this, SLOT( optionsConfigureKeys() ), actionCollection() ); // options_configure_keybinding
- KStandardAction::configureToolbars( this, SLOT( optionsConfigureToolbars() ), actionCollection() ); // options_configure_toolbars
+ KStandardAction::keyBindings( this, SLOT(optionsConfigureKeys()), actionCollection() ); // options_configure_keybinding
+ KStandardAction::configureToolbars( this, SLOT(optionsConfigureToolbars()), actionCollection() ); // options_configure_toolbars
- m_recentFiles = KStandardAction::openRecent( this, SLOT( openProject( KUrl ) ), actionCollection() );
+ m_recentFiles = KStandardAction::openRecent( this, SLOT(openProject(KUrl)), actionCollection() );
// d->recentFiles->loadEntries( KGlobal::config()->group( "Recent Files" ) );
KAction* login = new KAction( KIcon( "im-user" ), i18n( "Login" ), actionCollection() );
actionCollection()->addAction( "community_login", login );
- connect( login, SIGNAL( triggered( bool ) ), SLOT( mLogin() ) );
+ connect( login, SIGNAL(triggered(bool)), SLOT(mLogin()) );
KAction* logout = new KAction( KIcon( "media-playback-start" ), i18n( "Logout" ), actionCollection() );
actionCollection()->addAction( "community_logout", logout );
- connect( logout, SIGNAL( triggered( bool ) ), SLOT( mLogout() ) );
+ connect( logout, SIGNAL(triggered(bool)), SLOT(mLogout()) );
KAction* details = new KAction( KIcon( "media-playback-start" ), i18n( "Details" ), actionCollection() );
actionCollection()->addAction( "community_details", details );
- connect( details, SIGNAL( triggered( bool ) ), SLOT( mDetails() ) );
+ connect( details, SIGNAL(triggered(bool)), SLOT(mDetails()) );
KAction* registration = new KAction( KIcon( "list-add-user" ), i18n( "Registration" ), actionCollection() );
actionCollection()->addAction( "community_registration", registration );
- connect( registration, SIGNAL( triggered( bool ) ), SLOT( mRegistration() ) );
+ connect( registration, SIGNAL(triggered(bool)), SLOT(mRegistration()) );
KAction* forgottenPassword = new KAction( KIcon( "help-hint" ), i18n( "Forgotten password" ), actionCollection() );
actionCollection()->addAction( "community_forgotten_password", forgottenPassword );
- connect( forgottenPassword, SIGNAL( triggered( bool ) ), SLOT( mForgottenPassword() ) );
+ connect( forgottenPassword, SIGNAL(triggered(bool)), SLOT(mForgottenPassword()) );
KAction* play = new KAction( KIcon( "media-playback-start" ), i18n( "Play Game" ), actionCollection() );
actionCollection()->addAction( "game_play", play );
- connect( play, SIGNAL( triggered( bool ) ), SLOT( openProject() ) );
+ connect( play, SIGNAL(triggered(bool)), SLOT(openProject()) );
KAction* pause = new KAction( KIcon( "media-playback-pause" ), i18n( "Pause Game" ), actionCollection() );
actionCollection()->addAction( "game_pause", pause );
- connect( pause, SIGNAL( triggered( bool ) ), SLOT( pauseGame() ) );
+ connect( pause, SIGNAL(triggered(bool)), SLOT(pauseGame()) );
KAction* stop = new KAction( KIcon( "media-playback-stop" ), i18n( "Stop Game" ), actionCollection() );
actionCollection()->addAction( "game_stop", stop );
- connect( stop, SIGNAL( triggered( bool ) ), SLOT( stopGame() ) );
+ connect( stop, SIGNAL(triggered(bool)), SLOT(stopGame()) );
- KStandardAction::quit( kapp, SLOT( quit() ), actionCollection() );
+ KStandardAction::quit( kapp, SLOT(quit()), actionCollection() );
}
void MainWindow::startGame( )
@@ -272,7 +272,7 @@ void MainWindow::resizeEvent( QResizeEvent* event )
void MainWindow::showGames()
{
m_gamesOverlay->setGeometry( geometry() );
- connect( m_gamesOverlay, SIGNAL( gameToPlaySelected( QModelIndex ) ), SLOT( setProject( QModelIndex ) ) );
+ connect( m_gamesOverlay, SIGNAL(gameToPlaySelected(QModelIndex)), SLOT(setProject(QModelIndex)) );
}
void MainWindow::setProject( const QModelIndex& index )
@@ -299,12 +299,12 @@ void MainWindow::openProject()
d->widget = new GluonGraphics::RenderWidget( this );
setCentralWidget( d->widget );
- connect( GluonEngine::Game::instance(), SIGNAL( painted( int ) ), d->widget, SLOT( updateGL() ) );
- connect( GluonEngine::Game::instance(), SIGNAL( painted( int ) ), SLOT( countFrames( int ) ) );
- connect( GluonEngine::Game::instance(), SIGNAL( updated( int ) ), SLOT( updateTitle( int ) ) );
+ connect( GluonEngine::Game::instance(), SIGNAL(painted(int)), d->widget, SLOT(updateGL()) );
+ connect( GluonEngine::Game::instance(), SIGNAL(painted(int)), SLOT(countFrames(int)) );
+ connect( GluonEngine::Game::instance(), SIGNAL(updated(int)), SLOT(updateTitle(int)) );
GluonInput::InputManager::instance()->setFilteredObject( d->widget );
- QTimer::singleShot( 1000, this, SLOT( startGame() ) );
+ QTimer::singleShot( 1000, this, SLOT(startGame()) );
}
void MainWindow::activated( QModelIndex index )
diff --git a/player/desktop/views/newcommentform.cpp b/player/desktop/views/newcommentform.cpp
index 296c79f..20b9406 100644
--- a/player/desktop/views/newcommentform.cpp
+++ b/player/desktop/views/newcommentform.cpp
@@ -31,10 +31,10 @@ NewCommentForm::NewCommentForm( QWidget* parent, Qt::WindowFlags wFlags )
QGridLayout* layout = new QGridLayout( this );
m_okButton->setText( i18n( "OK" ) );
- connect( m_okButton, SIGNAL( clicked() ), SLOT( validateAndSubmit() ) );
+ connect( m_okButton, SIGNAL(clicked()), SLOT(validateAndSubmit()) );
m_cancelButton->setText( i18n( "Cancel" ) );
- connect( m_cancelButton, SIGNAL( clicked() ), SIGNAL( canceled() ) );
+ connect( m_cancelButton, SIGNAL(clicked()), SIGNAL(canceled()) );
layout->addWidget( m_okButton );
layout->addWidget( m_cancelButton );
diff --git a/player/fremantle/gamewindowmanager.cpp b/player/fremantle/gamewindowmanager.cpp
index dd6e53f..9995b80 100644
--- a/player/fremantle/gamewindowmanager.cpp
+++ b/player/fremantle/gamewindowmanager.cpp
@@ -104,12 +104,12 @@ GameWindowManager::GameWindowManager( const QString& /* filename */ )
d->rootObj = d->declarativeView->rootObject();
d->login = d->rootObj->findChild<QObject*>( "login" );
- QObject::connect( d->serviceProvider, SIGNAL( initializationFinished() ), d->login, SLOT( providerSet() ) );
+ QObject::connect( d->serviceProvider, SIGNAL(initializationFinished()), d->login, SLOT(providerSet()) );
d->stackedWidget->addWidget( d->declarativeView );
d->stackedWidget->addWidget( d->renderWidget );
d->stackedWidget->setCurrentIndex( 0 );
- connect( QApplication::instance(), SIGNAL( lastWindowClosed() ), GluonEngine::Game::instance(), SLOT( stopGame() ) );
+ connect( QApplication::instance(), SIGNAL(lastWindowClosed()), GluonEngine::Game::instance(), SLOT(stopGame()) );
}
GameWindowManager::~GameWindowManager( )
@@ -184,12 +184,12 @@ void GameWindowManager::openProject()
return;
}
- connect( GluonEngine::Game::instance(), SIGNAL( painted( int ) ), d->renderWidget, SLOT( updateGL() ) );
- connect( GluonEngine::Game::instance(), SIGNAL( painted( int ) ), SLOT( countFrames( int ) ) );
- connect( GluonEngine::Game::instance(), SIGNAL( updated( int ) ), SLOT( updateTitle( int ) ) );
+ connect( GluonEngine::Game::instance(), SIGNAL(painted(int)), d->renderWidget, SLOT(updateGL()) );
+ connect( GluonEngine::Game::instance(), SIGNAL(painted(int)), SLOT(countFrames(int)) );
+ connect( GluonEngine::Game::instance(), SIGNAL(updated(int)), SLOT(updateTitle(int)) );
GluonInput::InputManager::instance()->setFilteredObject( d->renderWidget );
- QTimer::singleShot( 1000, this, SLOT( startGame() ) );
+ QTimer::singleShot( 1000, this, SLOT(startGame()) );
}
void GameWindowManager::activated( QModelIndex index )
diff --git a/player/lib/abstractjob.cpp b/player/lib/abstractjob.cpp
index fd4f579..c307280 100644
--- a/player/lib/abstractjob.cpp
+++ b/player/lib/abstractjob.cpp
@@ -183,7 +183,7 @@ void AbstractJob::emitSpeed( unsigned long value )
if( !d->speedTimer )
{
d->speedTimer = new QTimer( this );
- connect( d->speedTimer, SIGNAL( timeout() ), SLOT( _k_speedTimeout() ) );
+ connect( d->speedTimer, SIGNAL(timeout()), SLOT(_k_speedTimeout()) );
}
emit speed( value );
diff --git a/player/lib/abstractsocialservicesjob.cpp b/player/lib/abstractsocialservicesjob.cpp
index f50803d..1a527dc 100644
--- a/player/lib/abstractsocialservicesjob.cpp
+++ b/player/lib/abstractsocialservicesjob.cpp
@@ -48,7 +48,7 @@ void AbstractSocialServicesJob::startImplementation()
}
else
{
- connect( GluonPlayer::ServiceProvider::instance(), SIGNAL( initializationFinished() ), SLOT( startSocialService() ) );
+ connect( GluonPlayer::ServiceProvider::instance(), SIGNAL(initializationFinished()), SLOT(startSocialService()) );
}
}
diff --git a/player/lib/addgamejob.cpp b/player/lib/addgamejob.cpp
index ca6c2df..a412768 100644
--- a/player/lib/addgamejob.cpp
+++ b/player/lib/addgamejob.cpp
@@ -57,7 +57,7 @@ void AddGameJob::startSocialService()
content.setName( d->gameName );
Attica::ItemPostJob<Attica::Content> *job = provider()->addNewContent( category, content );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( addGameComplete( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(addGameComplete(Attica::BaseJob*)) );
job->start();
}
diff --git a/player/lib/atticamanager.cpp b/player/lib/atticamanager.cpp
index 5a9d24d..23836a9 100644
--- a/player/lib/atticamanager.cpp
+++ b/player/lib/atticamanager.cpp
@@ -32,7 +32,7 @@ GLUON_DEFINE_SINGLETON( AtticaManager )
AtticaManager::AtticaManager( QObject* parent )
: GluonCore::Singleton< GluonPlayer::AtticaManager >( parent )
{
- connect( &m_manager, SIGNAL( defaultProvidersLoaded() ), SLOT( providersUpdated() ) );
+ connect( &m_manager, SIGNAL(defaultProvidersLoaded()), SLOT(providersUpdated()) );
m_manager.loadDefaultProviders();
}
@@ -82,7 +82,7 @@ bool AtticaManager::downloadGame( const QString& id )
}
else
{
- connect( this, SIGNAL( gotProvider() ), SLOT( requestContent() ) );
+ connect( this, SIGNAL(gotProvider()), SLOT(requestContent()) );
}
return true;
@@ -93,7 +93,7 @@ void AtticaManager::requestContent()
if( isProviderValid() )
{
Attica::ItemJob<Attica::Content> *job = provider().requestContent( m_currentId );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( processFetchedGameDetails( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(processFetchedGameDetails(Attica::BaseJob*)) );
job->start();
}
else
diff --git a/player/lib/categorylistjob.cpp b/player/lib/categorylistjob.cpp
index 932f39e..7b1da1a 100644
--- a/player/lib/categorylistjob.cpp
+++ b/player/lib/categorylistjob.cpp
@@ -75,7 +75,7 @@ CategoryListJob::~CategoryListJob()
void CategoryListJob::startSocialService()
{
Attica::ListJob<Attica::Category> *job = provider()->requestCategories();
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( processFetchedCategoryList( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(processFetchedCategoryList(Attica::BaseJob*)) );
job->start();
}
diff --git a/player/lib/commentslistjob.cpp b/player/lib/commentslistjob.cpp
index 36fad1a..c3487e6 100644
--- a/player/lib/commentslistjob.cpp
+++ b/player/lib/commentslistjob.cpp
@@ -126,7 +126,7 @@ void CommentsListJob::startSocialService()
//Attica uses some weird stuff called id2 which can be "0" for our uses
Attica::ListJob<Attica::Comment> *job = provider()->requestComments( Attica::Comment::ContentComment,
d->id, "0", d->page, d->pageSize );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( processFetchedCommentList( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(processFetchedCommentList(Attica::BaseJob*)) );
job->start();
}
diff --git a/player/lib/commentuploadjob.cpp b/player/lib/commentuploadjob.cpp
index 1da8d6b..8e11f63 100644
--- a/player/lib/commentuploadjob.cpp
+++ b/player/lib/commentuploadjob.cpp
@@ -57,7 +57,7 @@ void CommentUploadJob::startSocialService()
//Attica uses some weird stuff called id2 which can be "0" for our uses
Attica::PostJob* job = provider()->addNewComment( Attica::Comment::ContentComment, d->id, "0", d->parentId,
d->subject, d->message );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( uploadCommentFinished( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(uploadCommentFinished(Attica::BaseJob*)) );
job->start();
}
diff --git a/player/lib/editgamejob.cpp b/player/lib/editgamejob.cpp
index ab794c4..21ecba2 100644
--- a/player/lib/editgamejob.cpp
+++ b/player/lib/editgamejob.cpp
@@ -68,7 +68,7 @@ void EditGameJob::startSocialService()
void EditGameJob::startFetchingExistingGame()
{
Attica::ItemJob<Attica::Content> *job = d->provider->requestContent( d->id );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( processFetchedGameDetails( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(processFetchedGameDetails(Attica::BaseJob*)) );
job->start();
}
@@ -91,7 +91,7 @@ void EditGameJob::startEditionUpload()
{
if( !d->existingContent.isValid() )
{
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( startEditionUpload() ) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(startEditionUpload()) );
return;
}
@@ -99,7 +99,7 @@ void EditGameJob::startEditionUpload()
category.setId( d->category.isEmpty() ? "4440" : d->category );
Attica::ItemPostJob<Attica::Content> *job = d->provider->editContent( category, d->id, d->existingContent );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( editingComplete( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(editingComplete(Attica::BaseJob*)) );
job->start();
}
@@ -189,7 +189,7 @@ void EditGameJob::applyCategory()
if( d->existingContent.isValid() )
d->existingContent.addAttribute( "typeid", d->category );
else
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( applyCategory()) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(applyCategory()) );
}
void EditGameJob::applyChangelog()
@@ -197,7 +197,7 @@ void EditGameJob::applyChangelog()
if( d->existingContent.isValid() )
d->existingContent.addAttribute( "changelog", d->changelog );
else
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( applyChangelog() ) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(applyChangelog()) );
}
void EditGameJob::applyDescription()
@@ -205,7 +205,7 @@ void EditGameJob::applyDescription()
if( d->existingContent.isValid() )
d->existingContent.addAttribute( "description", d->description );
else
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( applyDescription() ) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(applyDescription()) );
}
void EditGameJob::applyLicense()
@@ -213,7 +213,7 @@ void EditGameJob::applyLicense()
if( d->existingContent.isValid() )
d->existingContent.addAttribute( "licensetype", d->license );
else
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( applyLicense() ) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(applyLicense()) );
}
void EditGameJob::applyName()
@@ -221,7 +221,7 @@ void EditGameJob::applyName()
if( d->existingContent.isValid() )
d->existingContent.setName( d->name );
else
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( applyName() ) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(applyName()) );
}
void EditGameJob::applyVersion()
@@ -229,7 +229,7 @@ void EditGameJob::applyVersion()
if( d->existingContent.isValid() )
d->existingContent.addAttribute( "version", d->version );
else
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( applyVersion() ) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(applyVersion()) );
}
void EditGameJob::applyHomepage()
@@ -240,7 +240,7 @@ void EditGameJob::applyHomepage()
d->existingContent.addAttribute( "homepagetype", "500" );
}
else
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( applyHomepage() ) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(applyHomepage()) );
}
void EditGameJob::applyDownloadType()
@@ -248,7 +248,7 @@ void EditGameJob::applyDownloadType()
if( d->existingContent.isValid() )
d->existingContent.addAttribute( "downloadtyp1", d->downloadType );
else
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( applyDownloadType() ) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(applyDownloadType()) );
}
void EditGameJob::applyDownloadPrice()
@@ -256,7 +256,7 @@ void EditGameJob::applyDownloadPrice()
if( d->existingContent.isValid() )
d->existingContent.addAttribute( "downloadprice1", d->downloadPrice );
else
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( applyDownloadPrice() ) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(applyDownloadPrice()) );
}
void EditGameJob::applyDownloadLink()
@@ -264,7 +264,7 @@ void EditGameJob::applyDownloadLink()
if( d->existingContent.isValid() )
d->existingContent.addAttribute( "downloadlink1", d->downloadLink );
else
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( applyDownloadLink() ) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(applyDownloadLink()) );
}
void EditGameJob::applyDownloadName()
@@ -272,7 +272,7 @@ void EditGameJob::applyDownloadName()
if( d->existingContent.isValid() )
d->existingContent.addAttribute( "downloadname1", d->downloadName );
else
- connect( this, SIGNAL( fetchedExistingGame( QString ) ), SLOT( applyDownloadName() ) );
+ connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(applyDownloadName()) );
}
QVariant EditGameJob::data()
diff --git a/player/lib/gamedetaillistjob.cpp b/player/lib/gamedetaillistjob.cpp
index 49458f6..72852c3 100644
--- a/player/lib/gamedetaillistjob.cpp
+++ b/player/lib/gamedetaillistjob.cpp
@@ -64,7 +64,7 @@ void GameDetailListJob::startSocialService()
}
Attica::ListJob<Attica::Content> *job = provider()->searchContents( categories );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( processFetchedGameList( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(processFetchedGameList(Attica::BaseJob*)) );
job->start();
}
diff --git a/player/lib/gamedetailsjob.cpp b/player/lib/gamedetailsjob.cpp
index a390442..ab1d0bc 100644
--- a/player/lib/gamedetailsjob.cpp
+++ b/player/lib/gamedetailsjob.cpp
@@ -54,7 +54,7 @@ GameDetailsJob::~GameDetailsJob()
void GameDetailsJob::startSocialService()
{
Attica::ItemJob<Attica::Content> *job = provider()->requestContent (d->id);
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( processFetchedGameDetails( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(processFetchedGameDetails(Attica::BaseJob*)) );
job->start();
}
diff --git a/player/lib/gamedownloadjob.cpp b/player/lib/gamedownloadjob.cpp
index 3d57cde..9db2c6e 100644
--- a/player/lib/gamedownloadjob.cpp
+++ b/player/lib/gamedownloadjob.cpp
@@ -58,7 +58,7 @@ GameDownloadJob::~GameDownloadJob()
void GameDownloadJob::startSocialService()
{
Attica::ItemJob<Attica::DownloadItem> *job = provider()->downloadLink( d->id );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( processDownloadLink( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(processDownloadLink(Attica::BaseJob*)) );
job->start();
}
@@ -76,9 +76,9 @@ void GameDownloadJob::processDownloadLink( Attica::BaseJob* baseJob )
}
QNetworkAccessManager* manager = new QNetworkAccessManager( this );
- connect( manager, SIGNAL( finished( QNetworkReply* ) ), SLOT( downloadComplete( QNetworkReply* ) ) );
+ connect( manager, SIGNAL(finished(QNetworkReply*)), SLOT(downloadComplete(QNetworkReply*)) );
QNetworkReply* reply = manager->get( QNetworkRequest( item.url() ) );
- connect( reply, SIGNAL( downloadProgress(qint64,qint64)), SLOT(updateDownloadProgress(qint64,qint64)) );
+ connect( reply, SIGNAL(downloadProgress(qint64,qint64)), SLOT(updateDownloadProgress(qint64,qint64)) );
}
void GameDownloadJob::downloadComplete( QNetworkReply* reply )
diff --git a/player/lib/gameuploadjob.cpp b/player/lib/gameuploadjob.cpp
index 067d8bd..f22bcbf 100644
--- a/player/lib/gameuploadjob.cpp
+++ b/player/lib/gameuploadjob.cpp
@@ -124,7 +124,7 @@ void GameUploadJob::uploadFileUsingAttica()
QFileInfo fileInfo( d->fileName );
Attica::PostJob* job = provider()->setDownloadFile( d->id, fileInfo.fileName(), contents );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( uploadComplete( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(uploadComplete(Attica::BaseJob*)) );
job->start();
}
diff --git a/player/lib/licensejob.cpp b/player/lib/licensejob.cpp
index 72c3edd..9675543 100644
--- a/player/lib/licensejob.cpp
+++ b/player/lib/licensejob.cpp
@@ -83,7 +83,7 @@ LicenseJob::~LicenseJob()
void LicenseJob::startSocialService()
{
Attica::ListJob<Attica::License> *job = provider()->requestLicenses();
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( processFetchedLicenses( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(processFetchedLicenses(Attica::BaseJob*)) );
job->start();
}
diff --git a/player/lib/models/allgameitemsmodel.cpp b/player/lib/models/allgameitemsmodel.cpp
index 0e7e235..ab87d8b 100644
--- a/player/lib/models/allgameitemsmodel.cpp
+++ b/player/lib/models/allgameitemsmodel.cpp
@@ -53,7 +53,7 @@ AllGameItemsModel::AllGameItemsModel( QObject* parent )
, d( new Private() )
{
d->fsModel.setNameFilters( QStringList( '*' + GluonEngine::projectSuffix ) );
- connect( &d->fsModel, SIGNAL( directoryLoaded( QString ) ), SLOT( directoryLoaded( QString ) ) );
+ connect( &d->fsModel, SIGNAL(directoryLoaded(QString)), SLOT(directoryLoaded(QString)) );
d->fsModel.setRootPath( GluonCore::DirectoryProvider::instance()->dataDirectory() + "/gluon/games" );
QHash<int, QByteArray> roles;
@@ -270,7 +270,7 @@ bool AllGameItemsModel::setData( const QModelIndex& index, const QVariant& value
case RatingRole:
RatingJob* ratingJob =
ServiceProvider::instance()->setRating( d->gameItems.at( index.row() )->id(), value.toUInt() );
- connect( ratingJob, SIGNAL(succeeded()), SLOT( ratingUploadFinished() ) );
+ connect( ratingJob, SIGNAL(succeeded()), SLOT(ratingUploadFinished()) );
ratingJob->start();
return true;
}
@@ -301,7 +301,7 @@ QVariant AllGameItemsModel::headerData( int section, Qt::Orientation orientation
void AllGameItemsModel::fetchGamesList()
{
GameDetailListJob* gameDetailListJob = ServiceProvider::instance()->fetchGames();
- connect( gameDetailListJob, SIGNAL( succeeded() ), SLOT( processFetchedGamesList() ) );
+ connect( gameDetailListJob, SIGNAL(succeeded()), SLOT(processFetchedGamesList()) );
gameDetailListJob->start();
}
@@ -325,8 +325,8 @@ void AllGameItemsModel::fetchAndUpdateExistingGameItem( const GameItem* gameItem
//TODO: To be uncommented once fetchOneGame is implemented
/*GameDetail* gameDetailsProvider = ServiceProvider::instance()->fetchOneGame( gameItem->id() );
- connect( gameDetailsProvider, SIGNAL( gameDetailsFetched( GameDetailItem* ) ),
- SLOT( processFetchedGameDetails( GameDetailItem* ) ) );*/
+ connect( gameDetailsProvider, SIGNAL(gameDetailsFetched(GameDetailItem*)),
+ SLOT(processFetchedGameDetails(GameDetailItem*)) );*/
}
void AllGameItemsModel::processFetchedGameDetails( GameDetailItem* gameDetails )
diff --git a/player/lib/models/commentitemsmodel.cpp b/player/lib/models/commentitemsmodel.cpp
index 00c6e9b..1cdf29b 100644
--- a/player/lib/models/commentitemsmodel.cpp
+++ b/player/lib/models/commentitemsmodel.cpp
@@ -81,7 +81,7 @@ void CommentItemsModel::updateData()
}
else
{
- connect( AtticaManager::instance(), SIGNAL( gotProvider() ), SLOT( providersUpdated() ) );
+ connect( AtticaManager::instance(), SIGNAL(gotProvider()), SLOT(providersUpdated()) );
}
}
@@ -92,7 +92,7 @@ void CommentItemsModel::providersUpdated()
Attica::ListJob<Attica::Comment> *job =
AtticaManager::instance()->provider().requestComments( Attica::Comment::ContentComment,
d->m_gameId, "0", 0, 100 );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( processFetchedComments( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(processFetchedComments(Attica::BaseJob*)) );
job->start();
}
else
@@ -305,7 +305,7 @@ void CommentItemsModel::uploadComment( const QModelIndex& parentIndex, const QSt
AtticaManager::instance()->provider().addNewComment( Attica::Comment::ContentComment,
d->m_gameId, "0", parentNode->name(), subject,
message );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( addCommentFinished( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(addCommentFinished(Attica::BaseJob*)) );
job->start();
}
diff --git a/player/lib/ratingjob.cpp b/player/lib/ratingjob.cpp
index 8cb9be0..e2293e0 100644
--- a/player/lib/ratingjob.cpp
+++ b/player/lib/ratingjob.cpp
@@ -61,7 +61,7 @@ RatingJob::~RatingJob()
void RatingJob::startSocialService()
{
Attica::PostJob* job = provider()->voteForContent( d->id, d->rating );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( ratingUploadComplete( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(ratingUploadComplete(Attica::BaseJob*)) );
job->start();
}
diff --git a/player/lib/serviceprovider.cpp b/player/lib/serviceprovider.cpp
index fb9559e..b242608 100644
--- a/player/lib/serviceprovider.cpp
+++ b/player/lib/serviceprovider.cpp
@@ -92,7 +92,7 @@ void ServiceProvider::init()
return;
}
- connect( &d->manager, SIGNAL( defaultProvidersLoaded() ), SLOT( providersUpdated() ) );
+ connect( &d->manager, SIGNAL(defaultProvidersLoaded()), SLOT(providersUpdated()) );
d->manager.loadDefaultProviders();
}
@@ -184,7 +184,7 @@ bool ServiceProvider::login( const QString& username, const QString& password )
}
else
{
- connect( this, SIGNAL( initializationFinished() ), SLOT( doLogin() ) );
+ connect( this, SIGNAL(initializationFinished()), SLOT(doLogin()) );
}
return true;
@@ -193,7 +193,7 @@ bool ServiceProvider::login( const QString& username, const QString& password )
void ServiceProvider::doLogin()
{
Attica::PostJob* job = d->provider.checkLogin( d->username, d->password );
- connect( job, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( checkLoginResult( Attica::BaseJob* ) ) );
+ connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(checkLoginResult(Attica::BaseJob*)) );
job->start();
}
@@ -234,7 +234,7 @@ bool ServiceProvider::logout()
}
else
{
- connect( this, SIGNAL( initializationFinished() ), SLOT( doLogout() ) );
+ connect( this, SIGNAL(initializationFinished()), SLOT(doLogout()) );
}
return true;
@@ -264,7 +264,7 @@ void ServiceProvider::registerAccount( const QString& username, const QString& p
if( isReady() )
{
Attica::PostJob *registerJob = d->provider.registerAccount( username, password, mail, firstName, lastName );
- connect( registerJob, SIGNAL( finished( Attica::BaseJob* ) ), SLOT( onRegisterAccountFinished( Attica::BaseJob* ) ) );
+ connect( registerJob, SIGNAL(finished(Attica::BaseJob*)), SLOT(onRegisterAccountFinished(Attica::BaseJob*)) );
registerJob->start();
}
}
diff --git a/player/plasmoid/gamedetailsoverlay.cpp b/player/plasmoid/gamedetailsoverlay.cpp
index f59f769..6d06749 100644
--- a/player/plasmoid/gamedetailsoverlay.cpp
+++ b/player/plasmoid/gamedetailsoverlay.cpp
@@ -39,7 +39,7 @@ GameDetailsOverlay::GameDetailsOverlay( QString gameId, QGraphicsItem* parent, Q
m_backButton = new Plasma::IconWidget( KIcon( "go-previous-view" ), i18nc( "Back to the previous view", "Back" ), this );
m_backButton->setOrientation( Qt::Horizontal );
m_backButton->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
- connect( m_backButton, SIGNAL( activated() ), SIGNAL( back() ) );
+ connect( m_backButton, SIGNAL(activated()), SIGNAL(back()) );
m_highScoresModel = new GluonPlayer::HighScoresModel( gameId );
m_highScoresView = new HighScoresView( this );
diff --git a/player/plasmoid/gamesoverlay.cpp b/player/plasmoid/gamesoverlay.cpp
index f34512c..7fcb525 100644
--- a/player/plasmoid/gamesoverlay.cpp
+++ b/player/plasmoid/gamesoverlay.cpp
@@ -33,8 +33,8 @@ GamesOverlay::GamesOverlay( QGraphicsItem* parent, Qt::WindowFlags wFlags )
, m_gamesView( new GamesView( this ) )
, m_loginForm( new LoginForm( this ) )
{
- connect( m_gamesView, SIGNAL( gameToPlaySelected( QModelIndex ) ), SIGNAL( gameToPlaySelected( QModelIndex ) ) );
- connect( m_gamesView, SIGNAL( gameSelected( QModelIndex ) ), SIGNAL( gameSelected( QModelIndex ) ) );
+ connect( m_gamesView, SIGNAL(gameToPlaySelected(QModelIndex)), SIGNAL(gameToPlaySelected(QModelIndex)) );
+ connect( m_gamesView, SIGNAL(gameSelected(QModelIndex)), SIGNAL(gameSelected(QModelIndex)) );
m_tabBar->addTab( KIcon( "applications-games" ), i18n( "Installed" ), m_gamesView );
Plasma::Label* m_tempLabel = new Plasma::Label( this );
diff --git a/player/plasmoid/loginform.cpp b/player/plasmoid/loginform.cpp
index c024f91..021bc7d 100644
--- a/player/plasmoid/loginform.cpp
+++ b/player/plasmoid/loginform.cpp
@@ -57,7 +57,7 @@ LoginForm::LoginForm( QGraphicsItem* parent, Qt::WindowFlags wFlags )
m_contentLayout->addItem( m_passwordEdit );
m_contentLayout->addItem( m_loginButton );
- connect( m_loginButton, SIGNAL( clicked() ), SLOT( doLogin() ) );
+ connect( m_loginButton, SIGNAL(clicked()), SLOT(doLogin()) );
GluonPlayer::ServiceProvider *serviceProvider = GluonPlayer::ServiceProvider::instance();
connect(serviceProvider, SIGNAL(providerInitialized()), SLOT(initDone()));
diff --git a/player/plasmoid/plasmaapplet.cpp b/player/plasmoid/plasmaapplet.cpp
index 1f00f99..cd672ee 100644
--- a/player/plasmoid/plasmaapplet.cpp
+++ b/player/plasmoid/plasmaapplet.cpp
@@ -104,7 +104,7 @@ void PlasmaApplet::openProject()
GluonCore::GluonObjectFactory::instance()->loadPlugins();
m_renderer = new RenderWidget();
- connect( GluonEngine::Game::instance(), SIGNAL( painted( int ) ), m_renderer, SLOT( updateGL() ) );
+ connect( GluonEngine::Game::instance(), SIGNAL(painted(int)), m_renderer, SLOT(updateGL()) );
GluonInput::InputManager::instance()->setFilteredObject( m_renderer );
@@ -155,8 +155,8 @@ void PlasmaApplet::showGames()
m_gamesOverlay = new GamesOverlay( this );
m_gamesOverlay->gamesView()->setModel( m_gameItemsModel );
m_gamesOverlay->setGeometry( geometry() );
- connect( m_gamesOverlay, SIGNAL( gameToPlaySelected( QModelIndex ) ), SLOT( setProject( QModelIndex ) ) );
- connect( m_gamesOverlay, SIGNAL( gameSelected( QModelIndex ) ), SLOT( showGameDetails( QModelIndex ) ) );
+ connect( m_gamesOverlay, SIGNAL(gameToPlaySelected(QModelIndex)), SLOT(setProject(QModelIndex)) );
+ connect( m_gamesOverlay, SIGNAL(gameSelected(QModelIndex)), SLOT(showGameDetails(QModelIndex)) );
}
if( m_gameDetailsOverlay )
@@ -184,7 +184,7 @@ void PlasmaApplet::showGameDetails( const QModelIndex& index )
m_layout->removeItem( m_gamesOverlay );
m_gameDetailsOverlay->show();
m_layout->addItem( m_gameDetailsOverlay );
- connect( m_gameDetailsOverlay, SIGNAL( back() ), SLOT( showGames() ) );
+ connect( m_gameDetailsOverlay, SIGNAL(back()), SLOT(showGames()) );
}
void PlasmaApplet::resizeEvent( QGraphicsSceneResizeEvent* event )
diff --git a/player/plasmoid/views/commentsview.cpp b/player/plasmoid/views/commentsview.cpp
index 4fb503f..aa747ca 100644
--- a/player/plasmoid/views/commentsview.cpp
+++ b/player/plasmoid/views/commentsview.cpp
@@ -47,7 +47,7 @@ CommentsView::CommentsView( QGraphicsItem* parent, Qt::WindowFlags wFlags )
void CommentsView::setModel( QAbstractItemModel* model )
{
AbstractItemView::setModel( model );
- connect( model, SIGNAL( modelReset() ), SLOT( reloadComments() ) );
+ connect( model, SIGNAL(modelReset()), SLOT(reloadComments()) );
m_rootWidget = new QGraphicsWidget( m_commentsFrame );
for( int i = 0; i < m_model->rowCount(); ++i )
@@ -65,7 +65,7 @@ CommentsViewItem* CommentsView::addComment( const QModelIndex& index, QGraphicsW
item->setModelIndex( index );
item->setAcceptHoverEvents( true );
item->installEventFilter( this );
- connect( item, SIGNAL( replyClicked() ), SLOT( showReply() ) );
+ connect( item, SIGNAL(replyClicked()), SLOT(showReply()) );
item->setRowInLayout( m_commentsLayout->count() );
m_commentsLayout->addItem( item );
@@ -101,9 +101,9 @@ void CommentsView::showReply()
form->setParentIndex( parentItem->modelIndex() );
form->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Maximum );
- connect( form, SIGNAL( accepted( QModelIndex, QString, QString ) ),
- SLOT( addNewUserComment( QModelIndex, QString, QString ) ) );
- connect( form, SIGNAL( canceled() ), SLOT( cancelNewComment() ) );
+ connect( form, SIGNAL(accepted(QModelIndex,QString,QString)),
+ SLOT(addNewUserComment(QModelIndex,QString,QString)) );
+ connect( form, SIGNAL(canceled()), SLOT(cancelNewComment()) );
}
void CommentsView::removeComments()
@@ -139,7 +139,7 @@ void CommentsView::addNewUserComment( QModelIndex parentIndex, QString title, QS
{
GluonPlayer::CommentsModel* model = static_cast<GluonPlayer::CommentsModel*>( m_model );
model->uploadComment( parentIndex, title, body );
- connect( model, SIGNAL( addCommentFailed() ), SLOT( showComments() ) );
+ connect( model, SIGNAL(addCommentFailed()), SLOT(showComments()) );
sender()->deleteLater();
}
diff --git a/player/plasmoid/views/commentsviewitem.cpp b/player/plasmoid/views/commentsviewitem.cpp
index 82b4517..2d8c3ed 100644
--- a/player/plasmoid/views/commentsviewitem.cpp
+++ b/player/plasmoid/views/commentsviewitem.cpp
@@ -132,7 +132,7 @@ void CommentsViewItem::layoutWidgets()
m_replyButton = new Plasma::IconWidget( this );
m_replyButton->setVisible( false );
m_replyButton->setIcon( KIcon( "edit-undo" ) );
- connect( m_replyButton, SIGNAL( activated() ), SIGNAL( replyClicked() ) );
+ connect( m_replyButton, SIGNAL(activated()), SIGNAL(replyClicked()) );
m_layout->addItem( m_title, 0, 0 );
m_layout->addItem( m_author, 0, 1 );
diff --git a/player/plasmoid/views/gamesview.cpp b/player/plasmoid/views/gamesview.cpp
index 132d0ff..f988c4d 100644
--- a/player/plasmoid/views/gamesview.cpp
+++ b/player/plasmoid/views/gamesview.cpp
@@ -41,8 +41,8 @@ void GamesView::setModel( QAbstractItemModel* model )
item->setModelIndex( m_model->index( i, 0 ) );
item->setAcceptHoverEvents( true );
item->installEventFilter( this );
- connect( item, SIGNAL( gameToPlaySelected( QModelIndex ) ), SIGNAL( gameToPlaySelected( QModelIndex ) ) );
- connect( item, SIGNAL( gameSelected( QModelIndex ) ), SIGNAL( gameSelected( QModelIndex ) ) );
+ connect( item, SIGNAL(gameToPlaySelected(QModelIndex)), SIGNAL(gameToPlaySelected(QModelIndex)) );
+ connect( item, SIGNAL(gameSelected(QModelIndex)), SIGNAL(gameSelected(QModelIndex)) );
m_contentLayout->addItem( item );
}
}
diff --git a/player/plasmoid/views/gamesviewitem.cpp b/player/plasmoid/views/gamesviewitem.cpp
index 73233ca..349fe18 100644
--- a/player/plasmoid/views/gamesviewitem.cpp
+++ b/player/plasmoid/views/gamesviewitem.cpp
@@ -64,13 +64,13 @@ void GamesViewItem::layoutWidgets()
m_playButton = new Plasma::IconWidget( this );
m_playButton->setIcon( KIcon( "media-playback-start" ) );
m_playButton->setSizePolicy( QSizePolicy::Maximum, QSizePolicy::MinimumExpanding );
- connect( m_playButton, SIGNAL( activated() ), SLOT( playGameActivated() ) );
+ connect( m_playButton, SIGNAL(activated()), SLOT(playGameActivated()) );
//Commented out for 0.7.1 release, as it doesn't work
/*m_installButton = new Plasma::IconWidget( this );
m_installButton->setIcon( KIcon( "kget" ));
m_installButton->setSizePolicy( QSizePolicy::Maximum, QSizePolicy::MinimumExpanding );
- connect( m_installButton, SIGNAL( activated()), SLOT(installGame()));*/
+ connect( m_installButton, SIGNAL(activated()), SLOT(installGame()));*/
m_layout->addItem( m_preview, 0, 0, 2, 1 );
m_layout->addItem( m_gameName, 0, 1 );
diff --git a/player/plasmoid/views/newcommentform.cpp b/player/plasmoid/views/newcommentform.cpp
index 7f0ac98..6410fb9 100644
--- a/player/plasmoid/views/newcommentform.cpp
+++ b/player/plasmoid/views/newcommentform.cpp
@@ -44,11 +44,11 @@ NewCommentForm::NewCommentForm( QGraphicsItem* parent, Qt::WindowFlags wFlags )
m_okButton = new Plasma::PushButton( this );
m_okButton->setText( i18n( "OK" ) );
- connect( m_okButton, SIGNAL( clicked() ), SLOT( validateAndSubmit() ) );
+ connect( m_okButton, SIGNAL(clicked()), SLOT(validateAndSubmit()) );
m_cancelButton = new Plasma::PushButton( this );
m_cancelButton->setText( i18n( "Cancel" ) );
- connect( m_cancelButton, SIGNAL( clicked() ), SIGNAL( canceled() ) );
+ connect( m_cancelButton, SIGNAL(clicked()), SIGNAL(canceled()) );
layout->addItem( m_titleEdit );
layout->addItem( m_bodyEdit );
diff --git a/smarts/editor/bteditor.cpp b/smarts/editor/bteditor.cpp
index 399a24d..dadf240 100644
--- a/smarts/editor/bteditor.cpp
+++ b/smarts/editor/bteditor.cpp
@@ -124,13 +124,13 @@ void bteditor::showBehaviorTree(btTreeModel* showThis)
{
disconnect(m_currentBehaviorTree, SIGNAL(addRemoveBTNode()), propertyWidget, SLOT(dragDropUpdate()));
disconnect(propertyWidget, SIGNAL(treeModelUpdate()), m_currentBehaviorTree, SLOT(updateTreeModel()));
- disconnect(m_currentBehaviorTree, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)), this, SLOT(updateView(const QModelIndex&, const QModelIndex&)));
+ disconnect(m_currentBehaviorTree, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(updateView(QModelIndex,QModelIndex)));
}
m_currentBehaviorTree = showThis; // keep track of behaviortree
connect(m_currentBehaviorTree, SIGNAL(addRemoveBTNode()), propertyWidget, SLOT(dragDropUpdate()));
connect(propertyWidget, SIGNAL(treeModelUpdate()), m_currentBehaviorTree, SLOT(updateTreeModel()));
- connect(m_currentBehaviorTree, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)), this, SLOT(updateView(const QModelIndex&, const QModelIndex&)));
+ connect(m_currentBehaviorTree, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(updateView(QModelIndex,QModelIndex)));
}
diff --git a/smarts/editor/bteditornodetype.cpp b/smarts/editor/bteditornodetype.cpp
index 9d00a6c..ca201a5 100644
--- a/smarts/editor/bteditornodetype.cpp
+++ b/smarts/editor/bteditornodetype.cpp
@@ -315,8 +315,8 @@ void btEditorNodeType::changeProperty(QString propertyName, QVariant value)
void btEditorNodeType::disconnectChangeProperty()
{
- disconnect(m_sender, SIGNAL(propertyChanged(QString, QVariant)), this, SLOT(changeProperty(QString, QVariant)));
- disconnect(m_sender, SIGNAL(propertyDescriptionChanged(QString, QString, QString)), this, SLOT(changePropertyDescription(QString,QString, QString)));
+ disconnect(m_sender, SIGNAL(propertyChanged(QString,QVariant)), this, SLOT(changeProperty(QString,QVariant)));
+ disconnect(m_sender, SIGNAL(propertyDescriptionChanged(QString,QString,QString)), this, SLOT(changePropertyDescription(QString,QString,QString)));
disconnect(m_sender, SIGNAL(nameChanged(QString)), this, SLOT(changeName(QString)));
disconnect(m_sender, SIGNAL(descriptionChanged(QString)), this, SLOT(changeDescription(QString)));
disconnect(m_sender, SIGNAL(classNameChanged(QString)), this, SLOT(changeClassName(QString)));
@@ -325,8 +325,8 @@ void btEditorNodeType::disconnectChangeProperty()
void btEditorNodeType::connectChangeProperty(btEditorNodeType* sender)
{
m_sender = sender;
- connect(m_sender, SIGNAL(propertyChanged(QString, QVariant)), this, SLOT(changeProperty(QString, QVariant)));
- connect(m_sender, SIGNAL(propertyDescriptionChanged(QString, QString, QString)), this, SLOT(changePropertyDescription(QString,QString, QString)));
+ connect(m_sender, SIGNAL(propertyChanged(QString,QVariant)), this, SLOT(changeProperty(QString,QVariant)));
+ connect(m_sender, SIGNAL(propertyDescriptionChanged(QString,QString,QString)), this, SLOT(changePropertyDescription(QString,QString,QString)));
connect(m_sender, SIGNAL(nameChanged(QString)), this, SLOT(changeName(QString)));
connect(m_sender, SIGNAL(descriptionChanged(QString)), this, SLOT(changeDescription(QString)));
connect(m_sender, SIGNAL(classNameChanged(QString)), this, SLOT(changeClassName(QString)));
diff --git a/smarts/editor/btpropertywidgetitem.cpp b/smarts/editor/btpropertywidgetitem.cpp
index bf94edd..beedb36 100644
--- a/smarts/editor/btpropertywidgetitem.cpp
+++ b/smarts/editor/btpropertywidgetitem.cpp
@@ -276,9 +276,9 @@ QWidget * btPropertyWidgetItem::createDoubleSpinBox(QVariant value, bool enabled
QWidget * btPropertyWidgetItem::createList(QVariant value, bool enabled)
{
btQVariantListWidget * widget = new btQVariantListWidget(this);
- connect(widget, SIGNAL(itemRemoved(QListWidgetItem*, int)), this, SLOT(QVariantListItemRemoved(QListWidgetItem*, int)));
+ connect(widget, SIGNAL(itemRemoved(QListWidgetItem*,int)), this, SLOT(QVariantListItemRemoved(QListWidgetItem*,int)));
connect(widget, SIGNAL(itemAdded(QListWidgetItem*)), this, SLOT(QVariantListItemAdded(QListWidgetItem*)));
- connect(widget, SIGNAL(itemChanged(QListWidgetItem*, int)), this, SLOT(QVariantListItemChanged(QListWidgetItem*, int)));
+ connect(widget, SIGNAL(itemChanged(QListWidgetItem*,int)), this, SLOT(QVariantListItemChanged(QListWidgetItem*,int)));
QVariantList list = qvariant_cast<QVariantList>(value);
diff --git a/smarts/editor/modeltest.cpp b/smarts/editor/modeltest.cpp
index bec32dc..69609f2 100644
--- a/smarts/editor/modeltest.cpp
+++ b/smarts/editor/modeltest.cpp
@@ -34,28 +34,28 @@ ModelTest::ModelTest(QAbstractItemModel *_model, QObject *parent) : QObject(pare
{
Q_ASSERT(model);
- connect(model, SIGNAL(columnsAboutToBeInserted(const QModelIndex &, int, int)),
+ connect(model, SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)),
this, SLOT(runAllTests()));
- connect(model, SIGNAL(columnsAboutToBeRemoved(const QModelIndex &, int, int)),
+ connect(model, SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)),
this, SLOT(runAllTests()));
- connect(model, SIGNAL(columnsInserted(const QModelIndex &, int, int)),
+ connect(model, SIGNAL(columnsInserted(QModelIndex,int,int)),
this, SLOT(runAllTests()));
- connect(model, SIGNAL(columnsRemoved(const QModelIndex &, int, int)),
+ connect(model, SIGNAL(columnsRemoved(QModelIndex,int,int)),
this, SLOT(runAllTests()));
- connect(model, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
+ connect(model, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
this, SLOT(runAllTests()));
- connect(model, SIGNAL(headerDataChanged(Qt::Orientation, int, int)),
+ connect(model, SIGNAL(headerDataChanged(Qt::Orientation,int,int)),
this, SLOT(runAllTests()));
- connect(model, SIGNAL(layoutAboutToBeChanged ()), this, SLOT(runAllTests()));
- connect(model, SIGNAL(layoutChanged ()), this, SLOT(runAllTests()));
- connect(model, SIGNAL(modelReset ()), this, SLOT(runAllTests()));
- connect(model, SIGNAL(rowsAboutToBeInserted(const QModelIndex &, int, int)),
+ connect(model, SIGNAL(layoutAboutToBeChanged()), this, SLOT(runAllTests()));
+ connect(model, SIGNAL(layoutChanged()), this, SLOT(runAllTests()));
+ connect(model, SIGNAL(modelReset()), this, SLOT(runAllTests()));
+ connect(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
this, SLOT(runAllTests()));
- connect(model, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)),
+ connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
this, SLOT(runAllTests()));
- connect(model, SIGNAL(rowsInserted(const QModelIndex &, int, int)),
+ connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)),
this, SLOT(runAllTests()));
- connect(model, SIGNAL(rowsRemoved(const QModelIndex &, int, int)),
+ connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)),
this, SLOT(runAllTests()));
// Special checks for inserting/removing
@@ -64,14 +64,14 @@ ModelTest::ModelTest(QAbstractItemModel *_model, QObject *parent) : QObject(pare
connect(model, SIGNAL(layoutChanged()),
this, SLOT(layoutChanged()));
- connect(model, SIGNAL(rowsAboutToBeInserted(const QModelIndex &, int, int)),
- this, SLOT(rowsAboutToBeInserted(const QModelIndex &, int, int)));
- connect(model, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)),
- this, SLOT(rowsAboutToBeRemoved(const QModelIndex &, int, int)));
- connect(model, SIGNAL(rowsInserted(const QModelIndex &, int, int)),
- this, SLOT(rowsInserted(const QModelIndex &, int, int)));
- connect(model, SIGNAL(rowsRemoved(const QModelIndex &, int, int)),
- this, SLOT(rowsRemoved(const QModelIndex &, int, int)));
+ connect(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
+ this, SLOT(rowsAboutToBeInserted(QModelIndex,int,int)));
+ connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
+ this, SLOT(rowsAboutToBeRemoved(QModelIndex,int,int)));
+ connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)),
+ this, SLOT(rowsInserted(QModelIndex,int,int)));
+ connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)),
+ this, SLOT(rowsRemoved(QModelIndex,int,int)));
runAllTests();
}
diff --git a/tools/viewer/main.cpp b/tools/viewer/main.cpp
index 672d03b..e4453cf 100644
--- a/tools/viewer/main.cpp
+++ b/tools/viewer/main.cpp
@@ -44,7 +44,7 @@ class Player : public QObject
m_renderWidget->installEventFilter(this);
m_renderWidget->setFocus();
- connect( GluonEngine::Game::instance(), SIGNAL( painted( int ) ), m_renderWidget, SLOT( updateGL() ) );
+ connect( GluonEngine::Game::instance(), SIGNAL(painted(int)), m_renderWidget, SLOT(updateGL()) );
GluonInput::InputManager::instance()->setFilteredObject( m_renderWidget );
QTimer::singleShot(100, this, SLOT(startGame()));
diff --git a/tools/winviewer/main.cpp b/tools/winviewer/main.cpp
index 1f6e40b..94dc519 100644
--- a/tools/winviewer/main.cpp
+++ b/tools/winviewer/main.cpp
@@ -44,7 +44,7 @@ class Player : public QObject
m_renderWidget->installEventFilter(this);
m_renderWidget->setFocus();
- connect( GluonEngine::Game::instance(), SIGNAL( painted( int ) ), m_renderWidget, SLOT( updateGL() ) );
+ connect( GluonEngine::Game::instance(), SIGNAL(painted(int)), m_renderWidget, SLOT(updateGL()) );
GluonInput::InputManager::instance()->setFilteredObject( m_renderWidget );
QTimer::singleShot(100, this, SLOT(startGame()));
More information about the Gluon
mailing list