BaseTextEditor: Remove some unnecessary indirections through widget

Change-Id: I4f71448d6788a4e553b1495b72263a004e65d8c0
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Eike Ziller
2013-12-13 11:17:57 +01:00
parent 7f03139442
commit 355f104d0e
13 changed files with 14 additions and 40 deletions

View File

@@ -285,16 +285,6 @@ BaseTextEditorWidget::~BaseTextEditorWidget()
d = 0;
}
QString BaseTextEditorWidget::mimeType() const
{
return d->m_document->mimeType();
}
void BaseTextEditorWidget::setMimeType(const QString &mt)
{
d->m_document->setMimeType(mt);
}
void BaseTextEditorWidget::print(QPrinter *printer)
{
const bool oldFullPage = printer->fullPage();
@@ -2190,16 +2180,6 @@ bool BaseTextEditorWidget::restoreState(const QByteArray &state)
return true;
}
void BaseTextEditorWidget::setDefaultPath(const QString &defaultPath)
{
baseTextDocument()->setDefaultPath(defaultPath);
}
void BaseTextEditorWidget::setSuggestedFileName(const QString &suggestedFileName)
{
baseTextDocument()->setSuggestedFileName(suggestedFileName);
}
void BaseTextEditorWidget::setParenthesesMatchingEnabled(bool b)
{
d->m_parenthesesMatchingEnabled = b;