mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Minor: RichTextEditor : add action to Create superscript or subscript
text or numbers git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4798 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
BIN
ico/22x22/format-text-subscript.svg.png
Normal file
BIN
ico/22x22/format-text-subscript.svg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 538 B |
BIN
ico/22x22/format-text-superscript.svg.png
Normal file
BIN
ico/22x22/format-text-superscript.svg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 590 B |
@@ -253,5 +253,7 @@
|
||||
<file>ico/16x16/help-donate.svg</file>
|
||||
<file>ico/16x16/edit-download.svg</file>
|
||||
<file>ico/16x16/kdenlive-show-video.svg</file>
|
||||
<file>ico/22x22/format-text-subscript.svg.png</file>
|
||||
<file>ico/22x22/format-text-superscript.svg.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -190,6 +190,8 @@ namespace QET {
|
||||
QIcon QETDonate;
|
||||
QIcon QETDownload;
|
||||
QIcon QETVideo;
|
||||
QIcon super;
|
||||
QIcon sub;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -462,4 +464,6 @@ void QET::Icons::initIcons() {
|
||||
listDrawings .addFile(":/ico/48x48/view-pim-journal.png");
|
||||
AutoNum .addFile(":/ico/128x128/plasmagik.png");
|
||||
TerminalStrip .addFile(":/ico/22x22/terminalstrip.png");
|
||||
sub .addFile(":/ico/22x22/format-text-subscript.svg.png");
|
||||
super .addFile(":/ico/22x22/format-text-superscript.svg.png");
|
||||
}
|
||||
|
||||
@@ -199,6 +199,8 @@ namespace QET {
|
||||
extern QIcon QETDonate;
|
||||
extern QIcon QETDownload;
|
||||
extern QIcon QETVideo;
|
||||
extern QIcon super;
|
||||
extern QIcon sub;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -503,19 +503,19 @@ RichTextEditorToolBar::RichTextEditorToolBar(RichTextEditor *editor,
|
||||
// Superscript and subscript buttons
|
||||
|
||||
m_valign_sup_action = createCheckableAction(
|
||||
QIcon(),
|
||||
QIcon(":/ico/22x22/format-text-superscript.svg.png"),
|
||||
tr("Superscript"),
|
||||
this, SLOT(setVAlignSuper(bool)), this);
|
||||
addAction(m_valign_sup_action);
|
||||
|
||||
m_valign_sub_action = createCheckableAction(
|
||||
QIcon(),
|
||||
QIcon(":/ico/22x22/format-text-subscript.svg.png"),
|
||||
tr("Subscript"),
|
||||
this, SLOT(setVAlignSub(bool)), this);
|
||||
addAction(m_valign_sub_action);
|
||||
|
||||
m_valign_sup_action -> setVisible( false );
|
||||
m_valign_sub_action -> setVisible( false );
|
||||
m_valign_sup_action -> setVisible( true );
|
||||
m_valign_sub_action -> setVisible( true );
|
||||
|
||||
// Insert hyperlink and image buttons
|
||||
|
||||
|
||||
Reference in New Issue
Block a user