aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/qsui
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-07-18 17:21:21 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-07-18 17:21:21 +0000
commitef7a934ed7220b6f597e5ef1b6f85730b0fee25b (patch)
tree434e9d125946cb02f865a22e9a7c556349cba0cb /src/plugins/Ui/qsui
parent09eafb312823cb995cffc98cfd8f0de4ee7526b3 (diff)
downloadqmmp-ef7a934ed7220b6f597e5ef1b6f85730b0fee25b.tar.gz
qmmp-ef7a934ed7220b6f597e5ef1b6f85730b0fee25b.tar.bz2
qmmp-ef7a934ed7220b6f597e5ef1b6f85730b0fee25b.zip
refactoring
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@10180 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/qsui')
-rw-r--r--src/plugins/Ui/qsui/logo.cpp50
1 files changed, 26 insertions, 24 deletions
diff --git a/src/plugins/Ui/qsui/logo.cpp b/src/plugins/Ui/qsui/logo.cpp
index b8c3ea2c9..70b09df87 100644
--- a/src/plugins/Ui/qsui/logo.cpp
+++ b/src/plugins/Ui/qsui/logo.cpp
@@ -29,30 +29,32 @@
Logo::Logo(QWidget *parent) : Visual(parent)
{
QPixmap pixmap(":/qsui/terminus.png");
- m_letters.insert('0', pixmap.copy(0, 0, 8, 14));
- m_letters.insert('1', pixmap.copy(8, 0, 8, 14));
- m_letters.insert('2', pixmap.copy(16, 0, 8, 14));
- m_letters.insert('3', pixmap.copy(24, 0, 8, 14));
- m_letters.insert('4', pixmap.copy(32, 0, 8, 14));
- m_letters.insert('5', pixmap.copy(40, 0, 8, 14));
- m_letters.insert('6', pixmap.copy(48, 0, 8, 14));
- m_letters.insert('7', pixmap.copy(56, 0, 8, 14));
- m_letters.insert('8', pixmap.copy(64, 0, 8, 14));
- m_letters.insert('9', pixmap.copy(72, 0, 8, 14));
- m_letters.insert('A', pixmap.copy(80, 0, 8, 14));
- m_letters.insert('B', pixmap.copy(88, 0, 8, 14));
- m_letters.insert('C', pixmap.copy(96, 0, 8, 14));
- m_letters.insert('D', pixmap.copy(104, 0, 8, 14));
- m_letters.insert('E', pixmap.copy(112, 0, 8, 14));
- m_letters.insert('F', pixmap.copy(120, 0, 8, 14));
- m_letters.insert('/', pixmap.copy(128, 0, 8, 14));
- m_letters.insert('|', pixmap.copy(136, 0, 8, 14));
- m_letters.insert('\\', pixmap.copy(144, 0, 8, 14));
- m_letters.insert('_', pixmap.copy(152, 0, 8, 14));
- m_letters.insert('-', pixmap.copy(160, 0, 8, 14));
- m_letters.insert('X', pixmap.copy(168, 0, 8, 14));
- m_letters.insert('.', pixmap.copy(176, 0, 8, 14));
- m_letters.insert(' ', pixmap.copy(184, 0, 8, 14));
+ m_letters = {
+ { '0', pixmap.copy(0, 0, 8, 14) },
+ { '1', pixmap.copy(8, 0, 8, 14) },
+ { '2', pixmap.copy(16, 0, 8, 14) },
+ { '3', pixmap.copy(24, 0, 8, 14) },
+ { '4', pixmap.copy(32, 0, 8, 14) },
+ { '5', pixmap.copy(40, 0, 8, 14) },
+ { '6', pixmap.copy(48, 0, 8, 14) },
+ { '7', pixmap.copy(56, 0, 8, 14) },
+ { '8', pixmap.copy(64, 0, 8, 14) },
+ { '9', pixmap.copy(72, 0, 8, 14) },
+ { 'A', pixmap.copy(80, 0, 8, 14) },
+ { 'B', pixmap.copy(88, 0, 8, 14) },
+ { 'C', pixmap.copy(96, 0, 8, 14) },
+ { 'D', pixmap.copy(104, 0, 8, 14) },
+ { 'E', pixmap.copy(112, 0, 8, 14) },
+ { 'F', pixmap.copy(120, 0, 8, 14) },
+ { '/', pixmap.copy(128, 0, 8, 14) },
+ { '|', pixmap.copy(136, 0, 8, 14) },
+ { '\\', pixmap.copy(144, 0, 8, 14) },
+ { '_', pixmap.copy(152, 0, 8, 14) },
+ { '-', pixmap.copy(160, 0, 8, 14) },
+ { 'X', pixmap.copy(168, 0, 8, 14) },
+ { '.', pixmap.copy(176, 0, 8, 14) },
+ { ' ', pixmap.copy(184, 0, 8, 14) }
+ };
QFile file(":/ascii_logo.txt");
file.open(QIODevice::ReadOnly | QIODevice::Text);