Commit 9f5877bd authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

minor whitespace style changes

parent 5e0b9366
......@@ -757,14 +757,14 @@ void EditProfileDialog::updateTransparencyWarning()
foreach(const QModelIndex & index , _ui->colorSchemeList->selectionModel()->selectedIndexes()) {
bool needTransparency = index.data(Qt::UserRole + 1).value<const ColorScheme*>()->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);
......
......@@ -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
......
......@@ -83,7 +83,7 @@ public:
/**
* Returns a list of already loaded profiles
*/
QList<Profile::Ptr> loadedProfiles() const ;
QList<Profile::Ptr> loadedProfiles() const;
/**
* Loads all available profiles. This involves reading each
......
......@@ -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;
}
......
......@@ -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();
......
......@@ -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);
......
......@@ -145,8 +145,7 @@ bool shouldUseNewProcess()
hasControllingTTY = true;
}
return hasControllingTTY ;
return hasControllingTTY;
}
void fillCommandLineOptions(KCmdLineOptions& options)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment