forked from len0rd/rockbox
Theme Editor: Fixed some compiler warnings and a segfault. Got some basic text rendering working (only with plaintext elements, no font support yet) as well as Viewport background color support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27126 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
691d049177
commit
273b9d6050
9 changed files with 70 additions and 15 deletions
|
@ -31,7 +31,8 @@
|
|||
|
||||
EditorWindow::EditorWindow(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
ui(new Ui::EditorWindow)
|
||||
ui(new Ui::EditorWindow),
|
||||
parseTreeSelection(0)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
prefs = new PreferencesDialog(this);
|
||||
|
@ -438,8 +439,6 @@ void EditorWindow::updateCurrent()
|
|||
void EditorWindow::lineChanged(int line)
|
||||
{
|
||||
ui->parseTree->collapseAll();
|
||||
if(parseTreeSelection)
|
||||
parseTreeSelection->deleteLater();
|
||||
ParseTreeModel* model = dynamic_cast<ParseTreeModel*>
|
||||
(ui->parseTree->model());
|
||||
parseTreeSelection = new QItemSelectionModel(model);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue