connect(page(), SIGNAL(selectionChanged()), this, SLOT(selection()));
}
+void TranslationTextEdit::wheelEvent(QWheelEvent *e) {
+ if(e->modifiers() & Qt::ControlModifier) {
+ if(e->delta()>0) {
+ zoomIn();
+ }
+ else {
+ zoomOut();
+ }
+ }
+}
-bool TranslationTextEdit::eventFilter(QObject *, QEvent *e)
-{
+bool TranslationTextEdit::eventFilter(QObject *, QEvent *e) {
switch (e->type()) {
case QEvent::MouseButtonPress:
if (static_cast<QMouseEvent *>(e)->button() == Qt::LeftButton)
case QEvent::MouseMove:
if (mousePressed)
return true;
- break;
default:
break;
}