~mixxxdevelopers/mixxx/engine-control-refactor

« back to all changes in this revision

Viewing changes to mixxx/src/widget/wlibrarytextbrowser.cpp

  • Committer: RJ Ryan
  • Date: 2013-06-04 00:41:29 UTC
  • mfrom: (2890.22.101 mixxx)
  • Revision ID: rryan@mixxx.org-20130604004129-8jjxkicsb3givu4a
MergingĀ fromĀ lp:mixxx.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#include "widget/wlibrarytextbrowser.h"
5
5
 
6
 
#include "widget/wwidget.h"
7
 
#include "widget/wskincolor.h"
8
 
 
9
6
WLibraryTextBrowser::WLibraryTextBrowser(QWidget* parent)
10
7
        : QTextBrowser(parent) {
11
 
 
12
8
}
13
9
 
14
10
WLibraryTextBrowser::~WLibraryTextBrowser() {
15
 
 
16
 
}
17
 
 
18
 
void WLibraryTextBrowser::setup(QDomNode node) {
19
 
    QPalette pal = palette();
20
 
    if (!WWidget::selectNode(node, "BgColor").isNull()) {
21
 
        QString bgColor = WWidget::selectNodeQString(node, "BgColor");
22
 
        QColor bg;
23
 
        bg.setNamedColor(bgColor);
24
 
        bg = WSkinColor::getCorrectColor(bg);
25
 
        pal.setColor(QPalette::Base, bg);
26
 
    }
27
 
    if (!WWidget::selectNode(node, "FgColor").isNull()) {
28
 
        QString fgColor = WWidget::selectNodeQString(node, "FgColor");
29
 
        QColor fg;
30
 
        fg.setNamedColor(fgColor);
31
 
        fg = WSkinColor::getCorrectColor(fg);
32
 
        pal.setColor(QPalette::Text, fg);
33
 
    }
34
 
    setPalette(pal);
35
 
}
36
 
 
37
 
void WLibraryTextBrowser::onSearch(const QString& text) {
38
 
 
39
 
}
40
 
 
41
 
void WLibraryTextBrowser::onSearchStarting() {
42
 
 
43
 
}
44
 
 
45
 
void WLibraryTextBrowser::onSearchCleared() {
46
 
 
47
 
}
48
 
 
49
 
void WLibraryTextBrowser::onShow() {
50
 
 
51
 
}
52
 
 
53
 
void WLibraryTextBrowser::loadSelectedTrack() {
54
 
    // Not applicable to text views
55
 
}
56
 
 
57
 
void WLibraryTextBrowser::loadSelectedTrackToGroup(QString group) {
58
 
    // Not applicable to text views
59
 
}
60
 
 
61
 
void WLibraryTextBrowser::moveSelection(int delta) {
62
 
    // Not applicable to text views
63
11
}