Clean up trailing whitespaces
This commit is contained in:
+9
-9
@@ -145,7 +145,7 @@ void QTermWidget::findPrevious()
|
||||
void QTermWidget::search(bool forwards, bool next)
|
||||
{
|
||||
int startColumn, startLine;
|
||||
|
||||
|
||||
if (next) // search from just after current selection
|
||||
{
|
||||
m_impl->m_terminalDisplay->screenWindow()->screen()->getSelectionEnd(startColumn, startLine);
|
||||
@@ -155,15 +155,15 @@ void QTermWidget::search(bool forwards, bool next)
|
||||
{
|
||||
m_impl->m_terminalDisplay->screenWindow()->screen()->getSelectionStart(startColumn, startLine);
|
||||
}
|
||||
|
||||
|
||||
qDebug() << "current selection starts at: " << startColumn << startLine;
|
||||
qDebug() << "current cursor position: " << m_impl->m_terminalDisplay->screenWindow()->cursorPosition();
|
||||
qDebug() << "current cursor position: " << m_impl->m_terminalDisplay->screenWindow()->cursorPosition();
|
||||
|
||||
QRegExp regExp(m_searchBar->searchText());
|
||||
regExp.setPatternSyntax(m_searchBar->useRegularExpression() ? QRegExp::RegExp : QRegExp::FixedString);
|
||||
regExp.setCaseSensitivity(m_searchBar->matchCase() ? Qt::CaseSensitive : Qt::CaseInsensitive);
|
||||
|
||||
HistorySearch *historySearch =
|
||||
HistorySearch *historySearch =
|
||||
new HistorySearch(m_impl->m_session->emulation(), regExp, forwards, startColumn, startLine, this);
|
||||
connect(historySearch, SIGNAL(matchFound(int, int, int, int)), this, SLOT(matchFound(int, int, int, int)));
|
||||
connect(historySearch, SIGNAL(noMatchFound()), this, SLOT(noMatchFound()));
|
||||
@@ -183,7 +183,7 @@ void QTermWidget::matchFound(int startColumn, int startLine, int endColumn, int
|
||||
sw->setSelectionEnd(endColumn, endLine - sw->currentLine());
|
||||
}
|
||||
|
||||
void QTermWidget::noMatchFound()
|
||||
void QTermWidget::noMatchFound()
|
||||
{
|
||||
m_impl->m_terminalDisplay->screenWindow()->clearSelection();
|
||||
}
|
||||
@@ -245,7 +245,7 @@ void QTermWidget::init(int startnow)
|
||||
m_layout = new QVBoxLayout();
|
||||
m_layout->setMargin(0);
|
||||
setLayout(m_layout);
|
||||
|
||||
|
||||
m_impl = new TermWidgetImpl(this);
|
||||
m_impl->m_terminalDisplay->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||
m_layout->addWidget(m_impl->m_terminalDisplay);
|
||||
@@ -359,7 +359,7 @@ QString QTermWidget::workingDirectory()
|
||||
if (!d.exists())
|
||||
{
|
||||
qDebug() << "Cannot find" << d.dirName();
|
||||
goto fallback;
|
||||
goto fallback;
|
||||
}
|
||||
return d.canonicalPath();
|
||||
#endif
|
||||
@@ -497,9 +497,9 @@ void QTermWidget::setZoom(int step)
|
||||
{
|
||||
if (!m_impl->m_terminalDisplay)
|
||||
return;
|
||||
|
||||
|
||||
QFont font = m_impl->m_terminalDisplay->getVTFont();
|
||||
|
||||
|
||||
font.setPointSize(font.pointSize() + step);
|
||||
setTerminalFont(font);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user