Changeset 2966
- Timestamp:
- 04/27/06 21:22:45 (3 years ago)
- Files:
-
- hydranode/hngui/hometabs.cpp (modified) (2 diffs)
- hydranode/hngui/transfertabs.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hydranode/hngui/hometabs.cpp
r2944 r2966 269 269 QPainter p(this); 270 270 p.setPen(QColor(153, 153, 153)); 271 p.setBrush(QColor( 218, 202, 191, 183));271 p.setBrush(QColor(196, 196, 195, 183)); 272 272 p.drawRect(-1, -1, width() + 1, height()); 273 273 return; … … 296 296 QPainter p(this); 297 297 p.setPen(QColor(153, 153, 153)); 298 p.setBrush(QColor(1 73, 215, 244, 183));298 p.setBrush(QColor(132, 160, 185, 183)); 299 299 p.drawRect(-1, -1, width() + 1, height()); 300 300 return; hydranode/hngui/transfertabs.cpp
r2965 r2966 41 41 m_commentB = QPixmap(imgDir() + "commentsback.png"); 42 42 m_commentBOrig = m_commentB; 43 // for (int i = 0; i < 16; ++i) { 44 // palette.setColor(QPalette::ColorRole(i), QColor(0, 0, 0, 0)); 45 // } 46 // palette.setColor(QPalette::Base, QColor(0, 0, 0, 0)); 47 // viewport()->setPalette(palette); 43 48 } 44 49 45 50 void CommentList::paintEvent(QPaintEvent *evt) { 51 QSettings conf(confDir() + "gui.ini", QSettings::IniFormat); 52 if (conf.value("EnableBars").toBool()) { 53 QPalette palette(palette()); 54 palette.setColor(QPalette::Base, QColor(204, 210, 214, 255)); 55 palette.setColor(QPalette::AlternateBase, QColor(204, 210,214)); 56 palette.setColor(QPalette::Highlight, QColor(222, 224, 228)); 57 setPalette(palette); 58 } else { 59 setPalette(QApplication::palette()); 60 } 61 46 62 HTreeWidget::paintEvent(evt); 63 #if 0 47 64 if (m_commentB.width() != width() || m_commentB.height() != height()) { 48 65 m_commentB = m_commentBOrig.scaled( … … 56 73 p.drawPixmap(0, 0, m_commentB); 57 74 } 75 #endif 58 76 // QPainter p(viewport()); 59 77 // QPixmap btn(imgDir() + "opendetails.png"); … … 106 124 m_commentFrame->commentList->setHeader(h); 107 125 h->setObjectName("comments"); 126 h->setFocusPolicy(Qt::NoFocus); 108 127 m_commentFrame->commentList->setHeaderLabels( 109 128 QStringList() << "File Name or Comment" << "Frequency" … … 639 658 } 640 659 641 m_commentFrame->commentHeader->setText( 642 "Known file names and comments for \"" + item->text(0) + "\"" 643 ); 660 QString tmp("Known file names and comments for \""); 661 tmp += item->text(0).left(60); 662 if (item->text(0).size() > 60) { 663 tmp += "..."; 664 } 665 tmp += "\""; 666 m_commentFrame->commentHeader->setText(tmp); 667 644 668 if (!item->getData()) { 645 669 return;
