comparison filestatuswidget.cpp @ 118:9734fb0d6fff

* Rudimentary version of the popup showing more information when you click on a changeset in history graph
author Chris Cannam
date Fri, 26 Nov 2010 23:49:48 +0000
parents 78374cefa10f
children 908a1fdeed6a
comparison
equal deleted inserted replaced
117:d5db15bf250c 118:9734fb0d6fff
81 "If you deleted them by accident, select them here and use Revert to restore their previous contents.<br>" 81 "If you deleted them by accident, select them here and use Revert to restore their previous contents.<br>"
82 "If you deleted them intentionally, select them here and use Remove to tell the version control system about it."); 82 "If you deleted them intentionally, select them here and use Remove to tell the version control system about it.");
83 m_descriptions[FileStates::Unknown] = tr("These files are in your working folder but are not under version control.<br>" 83 m_descriptions[FileStates::Unknown] = tr("These files are in your working folder but are not under version control.<br>"
84 "Select a file and use Add to place it under version control or Ignore to remove it from this list."); 84 "Select a file and use Add to place it under version control or Ignore to remove it from this list.");
85 85
86 m_highlightExplanation = tr("Files highlighted <font color=red>in red</font> " 86 m_highlightExplanation = tr("Files highlighted <font color=#d40000>in red</font> "
87 "have appeared since your most recent commit or update."); 87 "have appeared since your most recent commit or update.");
88 88
89 for (int i = int(FileStates::FirstState); 89 for (int i = int(FileStates::FirstState);
90 i <= int(FileStates::LastState); ++i) { 90 i <= int(FileStates::LastState); ++i) {
91 91
365 } 365 }
366 366
367 foreach (QString file, highPriority) { 367 foreach (QString file, highPriority) {
368 QListWidgetItem *item = new QListWidgetItem(file); 368 QListWidgetItem *item = new QListWidgetItem(file);
369 w->addItem(item); 369 w->addItem(item);
370 item->setForeground(Qt::red); //!!! and a nice gold star 370 item->setForeground(QColor("#d40000")); //!!! and a nice gold star
371 item->setSelected(selectedFiles.contains(file)); 371 item->setSelected(selectedFiles.contains(file));
372 } 372 }
373 373
374 foreach (QString file, lowPriority) { 374 foreach (QString file, lowPriority) {
375 QListWidgetItem *item = new QListWidgetItem(file); 375 QListWidgetItem *item = new QListWidgetItem(file);