diff options
author | 2012-11-19 17:39:18 +0000 | |
---|---|---|
committer | 2012-11-19 17:39:18 +0000 | |
commit | 8e41a168b0c4eedfcfb05d46f6a19895cc9459ec (patch) | |
tree | be640cb61ac302675d534452ae52e9ca544d0b82 /debugger/QT/SkDebuggerGUI.cpp | |
parent | dab9b4fe035c1e8a79e110139953c19bd48d66f9 (diff) |
Add original resources back and update code to match
https://codereview.appspot.com/6842061/
git-svn-id: http://skia.googlecode.com/svn/trunk@6484 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'debugger/QT/SkDebuggerGUI.cpp')
-rw-r--r-- | debugger/QT/SkDebuggerGUI.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp index 20fb5ec10d..d548d7baea 100644 --- a/debugger/QT/SkDebuggerGUI.cpp +++ b/debugger/QT/SkDebuggerGUI.cpp @@ -305,14 +305,14 @@ void SkDebuggerGUI::actionClearBreakpoints() { QListWidgetItem* item = fListWidget.item(row); item->setCheckState(Qt::Unchecked); item->setData(Qt::DecorationRole, - QPixmap(":/images/Icons/blank.png")); + QPixmap(":/blank.png")); } } void SkDebuggerGUI::actionClearDeletes() { for (int row = 0; row < fListWidget.count(); row++) { QListWidgetItem* item = fListWidget.item(row); - item->setData(Qt::UserRole + 2, QPixmap(":/images/Icons/blank.png")); + item->setData(Qt::UserRole + 2, QPixmap(":/blank.png")); fDebugger.setCommandVisible(row, true); } if (fPause) { @@ -337,10 +337,10 @@ void SkDebuggerGUI::actionDelete() { QListWidgetItem* item = fListWidget.currentItem(); if (fDebugger.isCommandVisible(currentRow)) { - item->setData(Qt::UserRole + 2, QPixmap(":/images/Icons/delete.png")); + item->setData(Qt::UserRole + 2, QPixmap(":/delete.png")); fDebugger.setCommandVisible(currentRow, false); } else { - item->setData(Qt::UserRole + 2, QPixmap(":/images/Icons/blank.png")); + item->setData(Qt::UserRole + 2, QPixmap(":/blank.png")); fDebugger.setCommandVisible(currentRow, true); } @@ -505,11 +505,11 @@ void SkDebuggerGUI::toggleBreakpoint() { if (item->checkState() == Qt::Unchecked) { item->setCheckState(Qt::Checked); item->setData(Qt::DecorationRole, - QPixmap(":/images/Icons/breakpoint_16x16.png")); + QPixmap(":/breakpoint_16x16.png")); } else { item->setCheckState(Qt::Unchecked); item->setData(Qt::DecorationRole, - QPixmap(":/images/Icons/blank.png")); + QPixmap(":/blank.png")); } } @@ -526,7 +526,7 @@ void SkDebuggerGUI::toggleFilter(QString string) { void SkDebuggerGUI::setupUi(QMainWindow *SkDebuggerGUI) { QIcon windowIcon; - windowIcon.addFile(QString::fromUtf8(":/images/Icons/skia.png"), QSize(), + windowIcon.addFile(QString::fromUtf8(":/skia.png"), QSize(), QIcon::Normal, QIcon::Off); SkDebuggerGUI->setObjectName(QString::fromUtf8("SkDebuggerGUI")); SkDebuggerGUI->resize(1200, 1000); @@ -537,14 +537,14 @@ void SkDebuggerGUI::setupUi(QMainWindow *SkDebuggerGUI) { fActionOpen.setText("Open"); QIcon breakpoint; - breakpoint.addFile(QString::fromUtf8(":/images/Icons/breakpoint.png"), + breakpoint.addFile(QString::fromUtf8(":/breakpoint.png"), QSize(), QIcon::Normal, QIcon::Off); fActionBreakpoint.setShortcut(QKeySequence(tr("Ctrl+B"))); fActionBreakpoint.setIcon(breakpoint); fActionBreakpoint.setText("Breakpoints"); QIcon cancel; - cancel.addFile(QString::fromUtf8(":/images/Ico/reload.png"), QSize(), + cancel.addFile(QString::fromUtf8(":/reload.png"), QSize(), QIcon::Normal, QIcon::Off); fActionCancel.setIcon(cancel); fActionCancel.setText("Clear Filter"); @@ -597,7 +597,7 @@ void SkDebuggerGUI::setupUi(QMainWindow *SkDebuggerGUI) { fActionPause.setText("Pause"); QIcon rewind; - rewind.addFile(QString::fromUtf8(":/images/Ico/rewind.png"), QSize(), + rewind.addFile(QString::fromUtf8(":/rewind.png"), QSize(), QIcon::Normal, QIcon::Off); fActionRewind.setShortcut(QKeySequence(tr("Ctrl+R"))); fActionRewind.setIcon(rewind); @@ -614,14 +614,14 @@ void SkDebuggerGUI::setupUi(QMainWindow *SkDebuggerGUI) { fActionShowDeletes.setText("Deleted Commands"); QIcon stepBack; - stepBack.addFile(QString::fromUtf8(":/images/Ico/previous.png"), QSize(), + stepBack.addFile(QString::fromUtf8(":/previous.png"), QSize(), QIcon::Normal, QIcon::Off); fActionStepBack.setShortcut(QKeySequence(tr("["))); fActionStepBack.setIcon(stepBack); fActionStepBack.setText("Step Back"); QIcon stepForward; - stepForward.addFile(QString::fromUtf8(":/images/Ico/next.png"), + stepForward.addFile(QString::fromUtf8(":/next.png"), QSize(), QIcon::Normal, QIcon::Off); fActionStepForward.setShortcut(QKeySequence(tr("]"))); fActionStepForward.setIcon(stepForward); |