Commit 25b8b535 authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Trivial style change: remove extra blank lines

parent 42665e79
......@@ -203,7 +203,6 @@ inline ColorEntry::FontWeight Character::fontWeight(const ColorEntry* base) cons
return ColorEntry::UseCurrentFormat;
}
}
Q_DECLARE_TYPEINFO(Konsole::Character, Q_MOVABLE_TYPE);
......
......@@ -284,7 +284,6 @@ inline void CharacterColor::setIntensive()
}
}
}
#endif // CHARACTERCOLOR_H
......
......@@ -206,7 +206,6 @@ ColorEntry ColorScheme::colorEntry(int index , uint randomSeed) const
!_randomTable[index].isNull()) {
const RandomizationRange& range = _randomTable[index];
int hueDifference = range.hue ? (qrand() % range.hue) - range.hue / 2 : 0;
int saturationDifference = range.saturation ? (qrand() % range.saturation) - range.saturation / 2 : 0;
int valueDifference = range.value ? (qrand() % range.value) - range.value / 2 : 0;
......
......@@ -192,6 +192,3 @@ void CheckableSessionModel::sessionRemoved(Session* session)
_fixedSessions.remove(session);
}
......@@ -253,7 +253,6 @@ void EditProfileDialog::setupGeneralPage(const Profile::Ptr profile)
}
}
ShellCommand command(profile->command() , profile->arguments());
_ui->commandEdit->setText(command.fullCommand());
KUrlCompletion* exeCompletion = new KUrlCompletion(KUrlCompletion::ExeCompletion);
......@@ -1293,7 +1292,6 @@ void ColorSchemeViewDelegate::paint(QPainter* painter, const QStyleOptionViewIte
if (isSelected) { //|| isChecked )
static const int selectedBorderWidth = 6;
painter->setBrush(QBrush(Qt::NoBrush));
QPen pen;
......@@ -1310,7 +1308,6 @@ void ColorSchemeViewDelegate::paint(QPainter* painter, const QStyleOptionViewIte
painter->setPen(pen);
painter->drawRect(option.rect.adjusted(selectedBorderWidth / 2,
selectedBorderWidth / 2,
-selectedBorderWidth / 2,
......
......@@ -242,7 +242,6 @@ void Emulation::receiveData(const char* text, int length)
//which hasn't been ported into the newer function (above). Hopefully someone who understands this better
//can find an alternative way of handling the check.
/*void Emulation::onRcvBlock(const char *s, int len)
{
emit notifySessionState(NOTIFYACTIVITY);
......@@ -294,7 +293,6 @@ int Emulation::lineCount() const
return _currentScreen->getLines() + _currentScreen->getHistLines();
}
void Emulation::showBulk()
{
_bulkTimer1.stop();
......@@ -370,6 +368,5 @@ QSize Emulation::imageSize() const
return QSize(_currentScreen->getColumns(), _currentScreen->getLines());
}
#include "Emulation.moc"
......@@ -412,7 +412,6 @@ signals:
*/
void selectedText(const QString & text);
protected:
virtual void setMode(int mode) = 0;
virtual void resetMode(int mode) = 0;
......
......@@ -99,7 +99,6 @@ ushort ExtendedCharTable::createExtendedChar(const ushort* unicodePoints , ushor
}
}
// add the new sequence to the table and
// return that index
ushort* buffer = new ushort[length + 1];
......@@ -153,4 +152,3 @@ bool ExtendedCharTable::extendedCharMatch(ushort hash , const ushort* unicodePoi
return true;
}
......@@ -195,7 +195,6 @@ void Filter::getLineColumn(int position , int& startLine , int& startColumn)
Q_ASSERT(_linePositions);
Q_ASSERT(_buffer);
for (int i = 0 ; i < _linePositions->count() ; i++) {
int nextLine = 0;
......@@ -212,7 +211,6 @@ void Filter::getLineColumn(int position , int& startLine , int& startColumn)
}
}
/*void Filter::addLine(const QString& text)
{
_linePositions << _buffer.length();
......
......@@ -164,10 +164,8 @@ int HistoryFile::len() const
return _length;
}
// History Scroll abstract base class //////////////////////////////////////
HistoryScroll::HistoryScroll(HistoryType* t)
: _historyType(t)
{
......@@ -514,7 +512,6 @@ int CompactHistoryScroll::getLineLen(int lineNumber)
return line->getLength();
}
void CompactHistoryScroll::getCells(int lineNumber, int startColumn, int count, Character buffer[])
{
if (count == 0) return;
......@@ -541,7 +538,6 @@ bool CompactHistoryScroll::isWrappedLine(int lineNumber)
return lines[lineNumber]->isWrapped();
}
//////////////////////////////////////////////////////////////////////
// History Types
//////////////////////////////////////////////////////////////////////
......
......@@ -120,7 +120,6 @@ protected:
};
//////////////////////////////////////////////////////////////////////
// File-based history (e.g. file log, no limitation in length)
//////////////////////////////////////////////////////////////////////
......@@ -383,8 +382,6 @@ protected:
unsigned int m_nbLines;
};
}
#endif // TEHISTORY_H
......@@ -138,5 +138,4 @@ void HistorySizeDialog::setLineCount(int lines)
_lineCountBox->setSingleStep(lines / 10);
}
#include "HistorySizeDialog.moc"
......@@ -62,7 +62,6 @@ public:
UnlimitedHistory
};
/** Specifies the history mode. */
void setMode(HistoryMode mode);
/** Returns the history mode chosen by the user. */
......
......@@ -201,5 +201,4 @@ const QBitArray IncrementalSearchBar::optionsChecked()
return options;
}
#include "IncrementalSearchBar.moc"
......@@ -40,7 +40,6 @@
using namespace Konsole;
const QByteArray KeyboardTranslatorManager::defaultTranslatorText(
"keyboard \"Fallback Key Translator\"\n"
"key Tab : \"\\t\""
......@@ -192,7 +191,6 @@ void KeyboardTranslatorWriter::writeEntry(const KeyboardTranslator::Entry& entry
*_writer << "key " << entry.conditionToString() << " : " << result << '\n';
}
// each line of the keyboard translation file is one of:
//
// - keyboard "name"
......
......@@ -720,6 +720,5 @@ bool MainWindow::focusNextPrevChild(bool)
return false;
}
#include "MainWindow.moc"
......@@ -53,7 +53,6 @@ class KONSOLEPRIVATE_EXPORT ManageProfilesDialog : public KDialog
{
Q_OBJECT
friend class FavoriteItemDelegate;
friend class ShortcutItemDelegate;
friend class ::QTableView;
......
......@@ -406,7 +406,6 @@ void UnixProcessInfo::readUserName()
delete [] getpwBuffer;
}
class LinuxProcessInfo : public UnixProcessInfo
{
public:
......@@ -459,7 +458,6 @@ private:
return false;
}
// read process status file ( /proc/<pid/stat )
//
// the expected file format is a list of fields separated by spaces, using
......
......@@ -356,5 +356,3 @@ void ProfileGroup::setProperty(Property property, const QVariant& value)
}
}
......@@ -56,7 +56,6 @@ ProfileList::ProfileList(bool addShortcuts , QObject* parent)
connect(_group, SIGNAL(triggered(QAction*)), this, SLOT(triggered(QAction*)));
// listen for future changes to the profiles
connect(manager, SIGNAL(favoriteStatusChanged(Profile::Ptr,bool)), this,
SLOT(favoriteChanged(Profile::Ptr,bool)));
......
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