X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Funicodedialog.cpp;h=4edf66d2fb1c439317d8434e6c97b4d5312e218c;hb=49c3f9376d4b9f7d185c4d6b22e662b127debdcb;hp=34a851184479f665d453ea96239916ab8f8ab3f7;hpb=23b71a234ff56ecda4c03a3a2fb0f6ec99aa8712;p=kdenlive diff --git a/src/unicodedialog.cpp b/src/unicodedialog.cpp index 34a85118..4edf66d2 100644 --- a/src/unicodedialog.cpp +++ b/src/unicodedialog.cpp @@ -9,6 +9,8 @@ #include "unicodedialog.h" +#include + /// CONSTANTS const int MAX_LENGTH_HEX = 4; @@ -153,7 +155,7 @@ QString UnicodeDialog::unicodeInfo(QString unicode) } else if (u == "2013") { infoText = i18n("

An en Dash (dash of the width of an n).

Usage examples: In English language for value ranges (1878–1903), for relationships/connections (Zurich–Dublin). In the German language it is also used (with spaces!) for showing thoughts: “Es war – wie immer in den Ferien – ein regnerischer Tag.

See Wikipedia:Dash

"); } else if (u == "2014") { - infoText = i18n("

An em Dash (dash of the widht of an m).

Usage examples: In English language to mark—like here—thoughts. Traditionally without spaces.

See Wikipedia:Dash

"); + infoText = i18n("

An em Dash (dash of the width of an m).

Usage examples: In English language to mark—like here—thoughts. Traditionally without spaces.

See Wikipedia:Dash

"); } else if (u == "202f") { infoText = i18n("

Narrow no-break space. Has the same width as U+2009.

Usage: For units (spaces are marked with U+2423, ␣): 230␣V, −21␣°C, 50␣lb, but 90° (no space). In German for abbreviations (like: i. d. R. instead of i. d. R. with U+00a0).

See Wikipedia:de:Schmales_Leerzeichen

"); } else if (u == "2026") { @@ -366,4 +368,12 @@ void UnicodeDialog::slotPrevUnicode() unicodeNumber->setText(nextUnicode(text, Backward)); } +void UnicodeDialog::wheelEvent(QWheelEvent * event) +{ + if (frame->underMouse()) { + if (event->delta() > 0) slotNextUnicode(); + else slotPrevUnicode(); + } +} + #include "unicodedialog.moc"