|
TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the qr code widget. More...
#include <qrcodewidget.h>
Inheritance diagram for QRCodeQWidget:Public Member Functions | |
| QRCodeQWidget (const QByteArray &text, const QSize &size, QWidget *parent=nullptr) | |
| void | setMargin (const int margin) |
| int | margin () const |
| void | setIcon (const QString &path, float percent) |
| QString | icon () const |
| void | setIconPercent (float percent) |
| float | iconPercent () const |
| void | setCaseSensitive (bool flag) |
| bool | caseSensitive () const |
| void | setText (const QByteArray &text) |
| QByteArray | text () const |
| void | setForegroundColor (const QColor &color) |
| QColor | foregroundColor () const |
| void | setBackgroundColor (const QColor &color) |
| QColor | backgroundColor () const |
| void | setMode (QRencodeMode mode) |
| QRencodeMode | mode () const |
| void | setLevel (QRecLevel level) |
| QRecLevel | level () const |
Private Member Functions | |
| virtual void | paintEvent (QPaintEvent *event) overridefinal |
The class of the qr code widget.
Definition at line 31 of file qrcodewidget.h.
| QRCodeQWidget::QRCodeQWidget | ( | const QByteArray & | text, |
| const QSize & | size, | ||
| QWidget * | parent = nullptr |
||
| ) |
Object constructor.
Definition at line 38 of file qrcodewidget.cpp.
References text(), TTK_D, and TTK_INIT_PRIVATE.
| QColor QRCodeQWidget::backgroundColor | ( | ) | const |
| bool QRCodeQWidget::caseSensitive | ( | ) | const |
| QColor QRCodeQWidget::foregroundColor | ( | ) | const |
| QString QRCodeQWidget::icon | ( | ) | const |
| float QRCodeQWidget::iconPercent | ( | ) | const |
| QRecLevel QRCodeQWidget::level | ( | ) | const |
Get qr level.
Definition at line 154 of file qrcodewidget.cpp.
References TTK_D.
Referenced by setLevel().
| int QRCodeQWidget::margin | ( | ) | const |
Get qr margin.
Definition at line 55 of file qrcodewidget.cpp.
References TTK_D.
Referenced by setMargin().
| QRencodeMode QRCodeQWidget::mode | ( | ) | const |
Get qr mode.
Definition at line 142 of file qrcodewidget.cpp.
References TTK_D.
Referenced by setMode().
|
finaloverrideprivatevirtual |
Override the widget event.
draw icon
Definition at line 160 of file qrcodewidget.cpp.
References QRcode::data, QRcode_encodeString(), QRcode_free(), TTK_D, and QRcode::width.
| void QRCodeQWidget::setBackgroundColor | ( | const QColor & | color | ) |
| void QRCodeQWidget::setCaseSensitive | ( | bool | flag | ) |
| void QRCodeQWidget::setForegroundColor | ( | const QColor & | color | ) |
| void QRCodeQWidget::setIcon | ( | const QString & | path, |
| float | percent | ||
| ) |
Set qr icon.
Definition at line 61 of file qrcodewidget.cpp.
References setIconPercent(), and TTK_D.
Referenced by MusicAlbumQueryWidget::createLabels(), MusicArtistQueryWidget::createLabels(), MusicSongSharingWidget::MusicSongSharingWidget(), and MusicPlaylistQueryInfoWidget::setResultDataItem().
| void QRCodeQWidget::setIconPercent | ( | float | percent | ) |
Set qr icon percent.
Definition at line 75 of file qrcodewidget.cpp.
References TTK_D.
Referenced by setIcon().
| void QRCodeQWidget::setLevel | ( | QRecLevel | level | ) |
Set qr margin.
Definition at line 48 of file qrcodewidget.cpp.
References margin(), and TTK_D.
Referenced by MusicAlbumQueryWidget::createLabels(), MusicArtistQueryWidget::createLabels(), MusicSongSharingWidget::MusicSongSharingWidget(), and MusicPlaylistQueryInfoWidget::setResultDataItem().
| void QRCodeQWidget::setMode | ( | QRencodeMode | mode | ) |
| void QRCodeQWidget::setText | ( | const QByteArray & | text | ) |
Set qr text.
Definition at line 100 of file qrcodewidget.cpp.
Referenced by MusicSongSharingWidget::sendToShare().
| QByteArray QRCodeQWidget::text | ( | ) | const |
Get qr text.
Definition at line 106 of file qrcodewidget.cpp.
References TTK_D.
Referenced by QRCodeQWidget(), and setText().
1.8.8