Tooltips and fonts stuff.
[qsnippetsmanager.git] / textedit.cpp
blob878a92e3b29354ce5840fb93a9f329098aa1e046
1 #include "textedit.h"
3 TextEdit::TextEdit( QWidget* aparent ) : QTextEdit( aparent ) {
4 #ifdef Q_WS_X11
5 this->setCurrentFont( QFont( "Monospace", 9 ) );
6 #endif
7 #ifdef Q_WS_WIN
8 this->setCurrentFont( QFont( "Courier New", 9 ) );
9 #endif
10 this->currentFont().setFixedPitch( true );
11 this->setTabStopWidth( 32 );
14 QSize TextEdit::sizeHint() const {
15 return QSize( 250, this->height() );