diff --git a/src/EditProfileDialog.cpp b/src/EditProfileDialog.cpp index 5ad1661c..1a3510e6 100644 --- a/src/EditProfileDialog.cpp +++ b/src/EditProfileDialog.cpp @@ -757,14 +757,14 @@ void EditProfileDialog::updateTransparencyWarning() foreach(const QModelIndex & index , _ui->colorSchemeList->selectionModel()->selectedIndexes()) { bool needTransparency = index.data(Qt::UserRole + 1).value()->opacity() < 1.0; - if (! needTransparency) { + if (!needTransparency) { _ui->transparencyWarningWidget->setHidden(true); - } else if (! KWindowSystem::compositingActive()) { + } else if (!KWindowSystem::compositingActive()) { _ui->transparencyWarningWidget->setText(i18n("This color scheme uses a transparent background" " which does not appear to be supported on your" " desktop")); _ui->transparencyWarningWidget->setHidden(false); - } else if (! WindowSystemInfo::HAVE_TRANSPARENCY) { + } else if (!WindowSystemInfo::HAVE_TRANSPARENCY) { _ui->transparencyWarningWidget->setText(i18n("Konsole was started before desktop effects were enabled." " You need to restart Konsole to see transparent background.")); _ui->transparencyWarningWidget->setHidden(false); diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 014e75ef..8e909aff 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -721,7 +721,7 @@ void MainWindow::setMenuBarInitialVisibility(bool visible) void MainWindow::showEvent(QShowEvent* aEvent) { // Make sure the 'initial' visibility is applied only once. - if (! _menuBarInitialVisibilityApplied) { + if (!_menuBarInitialVisibilityApplied) { // the initial visibility of menubar should be applied at this last // moment. Otherwise, the initial visibility will be determined by diff --git a/src/ProfileManager.h b/src/ProfileManager.h index ce46bd19..25f3c169 100644 --- a/src/ProfileManager.h +++ b/src/ProfileManager.h @@ -83,7 +83,7 @@ public: /** * Returns a list of already loaded profiles */ - QList loadedProfiles() const ; + QList loadedProfiles() const; /** * Loads all available profiles. This involves reading each diff --git a/src/ProfileWriter.cpp b/src/ProfileWriter.cpp index be739d8f..68a4c379 100644 --- a/src/ProfileWriter.cpp +++ b/src/ProfileWriter.cpp @@ -52,7 +52,7 @@ QString KDE4ProfileWriter::getPath(const Profile::Ptr profile) // been created in memory and has never been saved into disk before. // // use "name.profile" as filename and save it under $KDEHOME - if (! profile->isPropertySet(Profile::Path) ) { + if (!profile->isPropertySet(Profile::Path) ) { return candidateLocalPath; } diff --git a/src/SessionController.cpp b/src/SessionController.cpp index ba3b8865..5c4a0f64 100644 --- a/src/SessionController.cpp +++ b/src/SessionController.cpp @@ -358,7 +358,7 @@ void SessionController::updateWebSearchMenu() _webSearchMenu->menu()->clear(); if ( _selectedText.isEmpty() ) - return ; + return; QString searchText = _selectedText; searchText = searchText.replace('\n', ' ').replace('\r', ' ').simplified(); diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp index ab3a2b0d..a127a1e6 100644 --- a/src/TerminalDisplay.cpp +++ b/src/TerminalDisplay.cpp @@ -2473,7 +2473,7 @@ void TerminalDisplay::doPaste(QString text, bool appendReturn) if (appendReturn) text.append("\r"); - if (! text.isEmpty()) { + if (!text.isEmpty()) { text.replace('\n', '\r'); // perform paste by simulating keypress events QKeyEvent e(QEvent::KeyPress, 0, Qt::NoModifier, text); diff --git a/src/main.cpp b/src/main.cpp index acf8d5ba..6a7e362e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -145,8 +145,7 @@ bool shouldUseNewProcess() hasControllingTTY = true; } - return hasControllingTTY ; - + return hasControllingTTY; } void fillCommandLineOptions(KCmdLineOptions& options)