WSL/SLF GitLab Repository

Commit 5bec22a8 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Moving all unicode constants to the same place

parent e476f5c7
......@@ -976,7 +976,7 @@ int PreviewWindow::getCurrentLineNumber()
int PreviewWindow::getNrOfSelectedLines()
{
const QTextCursor cursor( getCurrentEditor()->textCursor() );
return cursor.selectedText().split(paragraph_separator).count();
return cursor.selectedText().split(Cst::u_paragraph).count();
}
/**
......
......@@ -150,7 +150,6 @@ class PreviewWindow : public QMainWindow {
QAction *edit_insert_missing_ = nullptr;
QAction *edit_insert_missing_mandatory_ = nullptr;
QAction *transform_reset_full_ = nullptr;
static const int paragraph_separator = 0x2029; //UNICODE paragraph separator
static const int long_spaces_for_tabs = 8; //8 spaces ~ 1 tab
static const int short_spaces_for_tabs = 4; //4 spaces ~ 1 tab
unsigned int unsaved_ini_counter_ = 1;
......
......@@ -36,6 +36,7 @@ namespace Cst {
static const QString u_globe( QString::fromUcs4(&globe_32, 1) ); //🌍
static const QString u_warning( QChar (0x26A0 ) ); //⚠
static const QString u_valid ( QChar ( 0x2713 ) ); //✓
static const QString u_paragraph( QChar( 0x2029 ) ); //UNICODE paragraph separator
/* main window */
static constexpr int width_inishell_default = 1400;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment