minor whitespace style changes

wilder-portage
Kurt Hindenburg 14 years ago
parent 5e0b936666
commit 9f5877bdfc
  1. 6
      src/EditProfileDialog.cpp
  2. 2
      src/MainWindow.cpp
  3. 2
      src/ProfileManager.h
  4. 2
      src/ProfileWriter.cpp
  5. 2
      src/SessionController.cpp
  6. 2
      src/TerminalDisplay.cpp
  7. 3
      src/main.cpp

@ -757,14 +757,14 @@ void EditProfileDialog::updateTransparencyWarning()
foreach(const QModelIndex & index , _ui->colorSchemeList->selectionModel()->selectedIndexes()) { foreach(const QModelIndex & index , _ui->colorSchemeList->selectionModel()->selectedIndexes()) {
bool needTransparency = index.data(Qt::UserRole + 1).value<const ColorScheme*>()->opacity() < 1.0; bool needTransparency = index.data(Qt::UserRole + 1).value<const ColorScheme*>()->opacity() < 1.0;
if (! needTransparency) { if (!needTransparency) {
_ui->transparencyWarningWidget->setHidden(true); _ui->transparencyWarningWidget->setHidden(true);
} else if (! KWindowSystem::compositingActive()) { } else if (!KWindowSystem::compositingActive()) {
_ui->transparencyWarningWidget->setText(i18n("This color scheme uses a transparent background" _ui->transparencyWarningWidget->setText(i18n("This color scheme uses a transparent background"
" which does not appear to be supported on your" " which does not appear to be supported on your"
" desktop")); " desktop"));
_ui->transparencyWarningWidget->setHidden(false); _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." _ui->transparencyWarningWidget->setText(i18n("Konsole was started before desktop effects were enabled."
" You need to restart Konsole to see transparent background.")); " You need to restart Konsole to see transparent background."));
_ui->transparencyWarningWidget->setHidden(false); _ui->transparencyWarningWidget->setHidden(false);

@ -721,7 +721,7 @@ void MainWindow::setMenuBarInitialVisibility(bool visible)
void MainWindow::showEvent(QShowEvent* aEvent) void MainWindow::showEvent(QShowEvent* aEvent)
{ {
// Make sure the 'initial' visibility is applied only once. // Make sure the 'initial' visibility is applied only once.
if (! _menuBarInitialVisibilityApplied) { if (!_menuBarInitialVisibilityApplied) {
// the initial visibility of menubar should be applied at this last // the initial visibility of menubar should be applied at this last
// moment. Otherwise, the initial visibility will be determined by // moment. Otherwise, the initial visibility will be determined by

@ -83,7 +83,7 @@ public:
/** /**
* Returns a list of already loaded profiles * 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 * 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. // been created in memory and has never been saved into disk before.
// //
// use "name.profile" as filename and save it under $KDEHOME // use "name.profile" as filename and save it under $KDEHOME
if (! profile->isPropertySet(Profile::Path) ) { if (!profile->isPropertySet(Profile::Path) ) {
return candidateLocalPath; return candidateLocalPath;
} }

@ -358,7 +358,7 @@ void SessionController::updateWebSearchMenu()
_webSearchMenu->menu()->clear(); _webSearchMenu->menu()->clear();
if ( _selectedText.isEmpty() ) if ( _selectedText.isEmpty() )
return ; return;
QString searchText = _selectedText; QString searchText = _selectedText;
searchText = searchText.replace('\n', ' ').replace('\r', ' ').simplified(); searchText = searchText.replace('\n', ' ').replace('\r', ' ').simplified();

@ -2473,7 +2473,7 @@ void TerminalDisplay::doPaste(QString text, bool appendReturn)
if (appendReturn) if (appendReturn)
text.append("\r"); text.append("\r");
if (! text.isEmpty()) { if (!text.isEmpty()) {
text.replace('\n', '\r'); text.replace('\n', '\r');
// perform paste by simulating keypress events // perform paste by simulating keypress events
QKeyEvent e(QEvent::KeyPress, 0, Qt::NoModifier, text); QKeyEvent e(QEvent::KeyPress, 0, Qt::NoModifier, text);

@ -145,8 +145,7 @@ bool shouldUseNewProcess()
hasControllingTTY = true; hasControllingTTY = true;
} }
return hasControllingTTY ; return hasControllingTTY;
} }
void fillCommandLineOptions(KCmdLineOptions& options) void fillCommandLineOptions(KCmdLineOptions& options)

Loading…
Cancel
Save