Changeset 2940

Show
Ignore:
Timestamp:
04/26/06 17:22:21 (3 years ago)
Author:
madcat
Message:

Commented out some code.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hydranode/hngui/transfertabs.cpp

    r2939 r2940  
    151151//      ); 
    152152//      connect(m_detailsBar->cleanButton, SIGNAL(clicked()),SLOT(cleanName())); 
    153       connect( 
    154               m_detailsBar->destButton, SIGNAL(clicked()), 
    155               SLOT(changeFileDest()) 
    156       ); 
    157       connect( 
    158               m_detailsBar->setButton, SIGNAL(clicked()), 
    159               SLOT(renameClicked()) 
    160       ); 
    161       connect(m_detailsBar->cleanButton, SIGNAL(clicked()),SLOT(cleanName())); 
     153//    connect( 
     154//            m_detailsBar->destButton, SIGNAL(clicked()), 
     155//            SLOT(changeFileDest()) 
     156//    ); 
     157//    connect( 
     158//            m_detailsBar->setButton, SIGNAL(clicked()), 
     159//            SLOT(renameClicked()) 
     160//    ); 
     161//    connect(m_detailsBar->cleanButton, SIGNAL(clicked()),SLOT(cleanName())); 
    162162        connect(m_commentTimer, SIGNAL(timeout()), SLOT(getMoreComments())); 
    163163        connect( 
     
    495495//                      ); 
    496496//              } 
    497       } else if (obj == m_ui->detailsBar) { 
    498               QPainter p(m_ui->detailsBar); 
    499               if (!m_detailsBack.isNull()&&conf.value("EnableBars").toBool()){ 
    500                       int w = m_ui->detailsBar->width() - 2; 
    501                       int h = m_ui->detailsBar->height() - 2; 
    502                       if ( 
    503                               m_detailsBack.width() != w || 
    504                               m_detailsBack.height() != h 
    505                       ) { 
    506                               m_detailsBack = m_detailsBackOrig.scaled( 
    507                                       w, h, Qt::IgnoreAspectRatio, 
    508                                       Qt::SmoothTransformation 
    509                               ); 
    510                       } 
    511                       p.drawPixmap(1, 1, m_detailsBack); 
    512                       p.setPen(QColor(153, 153, 153, 132)); 
    513                       p.drawRect( 
    514                               0, 0, m_ui->detailsBar->width() - 1, 
    515                               m_ui->detailsBar->height() 
    516                       ); 
    517               } 
    518               QPixmap btn(imgDir() + "closedetails.png"); 
    519               if (!btn.isNull()) { 
    520                       int posX = (m_ui->detailsBar->width() - btn.width()) /2; 
    521                       int posY = 0; 
    522                       p.drawPixmap(posX, posY, btn); 
    523                       m_closeButton = QRect( 
    524                               posX, posY, btn.width(), btn.height() 
    525                       ); 
    526               } 
    527       } else if (obj == window() && m_ui->detailsBar->isHidden()) { 
    528               if (isHidden()) { 
    529                       return false; 
    530               } 
    531               QPainter p(window()); 
    532               QPixmap btn(imgDir() + "opendetails.png"); 
    533               if (!btn.isNull()) { 
    534                       int posX = (window()->width() - btn.width()) / 2; 
    535                       int posY = window()->height() - btn.height(); 
    536                       p.drawPixmap(posX, posY, btn); 
    537                       m_closeButton = QRect( 
    538                               posX, posY, btn.width(), btn.height() 
    539                       ); 
    540               } 
     497//    } else if (obj == m_ui->detailsBar) { 
     498//            QPainter p(m_ui->detailsBar); 
     499//            if (!m_detailsBack.isNull()&&conf.value("EnableBars").toBool()){ 
     500//                    int w = m_ui->detailsBar->width() - 2; 
     501//                    int h = m_ui->detailsBar->height() - 2; 
     502//                    if ( 
     503//                            m_detailsBack.width() != w || 
     504//                            m_detailsBack.height() != h 
     505//                    ) { 
     506//                            m_detailsBack = m_detailsBackOrig.scaled( 
     507//                                    w, h, Qt::IgnoreAspectRatio, 
     508//                                    Qt::SmoothTransformation 
     509//                            ); 
     510//                    } 
     511//                    p.drawPixmap(1, 1, m_detailsBack); 
     512//                    p.setPen(QColor(153, 153, 153, 132)); 
     513//                    p.drawRect( 
     514//                            0, 0, m_ui->detailsBar->width() - 1, 
     515//                            m_ui->detailsBar->height() 
     516//                    ); 
     517//            } 
     518//            QPixmap btn(imgDir() + "closedetails.png"); 
     519//            if (!btn.isNull()) { 
     520//                    int posX = (m_ui->detailsBar->width() - btn.width()) /2; 
     521//                    int posY = 0; 
     522//                    p.drawPixmap(posX, posY, btn); 
     523//                    m_closeButton = QRect( 
     524//                            posX, posY, btn.width(), btn.height() 
     525//                    ); 
     526//            } 
     527//    } else if (obj == window() && m_ui->detailsBar->isHidden()) { 
     528//            if (isHidden()) { 
     529//                    return false; 
     530//            } 
     531//            QPainter p(window()); 
     532//            QPixmap btn(imgDir() + "opendetails.png"); 
     533//            if (!btn.isNull()) { 
     534//                    int posX = (window()->width() - btn.width()) / 2; 
     535//                    int posY = window()->height() - btn.height(); 
     536//                    p.drawPixmap(posX, posY, btn); 
     537//                    m_closeButton = QRect( 
     538//                            posX, posY, btn.width(), btn.height() 
     539//                    ); 
     540//            } 
    541541        } 
    542542        return false;