VirtualBox

Changeset 2999 in vbox for trunk


Ignore:
Timestamp:
Jun 2, 2007 4:27:00 PM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Minor corrections (set the log view paper to parent's when disabled).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMLogViewer.ui.h

    r2996 r2999  
    269269    }
    270270
    271     /* creating clean log page if there is no logs at all */
     271    /* create an empty log page if there are no logs at all */
    272272    if (!isAnyLogPresent)
    273273    {
     
    278278            "button to rescan the log folder <nobr><b>%1</b></nobr>.</p>")
    279279            .arg (logFilesPath));
     280        /* we don't want it to remain white */
     281        dummyLog->setPaper (backgroundBrush());
    280282    }
    281283
     
    295297        /* resize the whole log-viewer to fit 80 symbols in text-browser for
    296298         * the first time started */
    297         QTextBrowser *firstPage = static_cast<QTextBrowser*> (mLogList->page(0));
     299        QTextBrowser *firstPage = static_cast <QTextBrowser *> (mLogList->page(0));
    298300        int fullWidth = firstPage->fontMetrics().width (QChar ('x')) * 80 +
    299301                        firstPage->verticalScrollBar()->width() +
    300302                        firstPage->frameWidth() * 2 +
    301                         1 * 2 /* some one-pixel margin */ +
     303                        5 + 4 /* left text margin + QTabWidget frame width */ +
    302304                        mLogList->margin() * 2 +
    303305                        centralWidget()->layout()->margin() * 2;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette