diff options
author | deva <deva> | 2006-04-19 13:30:10 +0000 |
---|---|---|
committer | deva <deva> | 2006-04-19 13:30:10 +0000 |
commit | a6aaea79af5c166bcaad26edf6e0f8354f4d2b0b (patch) | |
tree | b29dfe04a9dc8fe18ab2d5b336e04b1e8f1a67e2 /client/mainwindow.cc | |
parent | 108e71a9fb9b69fb58a1a4d72104527ef0165508 (diff) |
*** empty log message ***
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r-- | client/mainwindow.cc | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 8d7c04f..dd05b69 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -112,22 +112,11 @@ MainWindow::MainWindow(Decoder *d): QWidget() // Create history bar history = new HistoryFrame(); layout->addWidget(history, 0,4, 2,1); - history->addHistoryItem(new HistoryWidget(new QPixmap(PIXMAP_MUTE))); - history->addHistoryItem(new HistoryWidget(new QPixmap(PIXMAP_UNMUTE))); - history->addHistoryItem(new HistoryWidget(new QPixmap(PIXMAP_STOP))); - history->addHistoryItem(new HistoryWidget(new QPixmap(PIXMAP_RECORD))); - history->addHistoryItem(new HistoryWidget(new QPixmap(PIXMAP_FREEZE))); - history->addHistoryItem(new HistoryWidget(new QPixmap(PIXMAP_UNFREEZE))); - history->addHistoryItem(new HistoryWidget(new QPixmap(PIXMAP_CPR))); - history->addHistoryItem(new HistoryWidget(new QPixmap(PIXMAP_CLEAR))); - history->addHistoryItem(new HistoryWidget(new QPixmap(PIXMAP_DUMMY))); - history->addHistoryItem(new HistoryWidget(new QPixmap(PIXMAP_LOGO_SMALL))); - // Create statusbar show(); - //setWindowState(Qt::WindowFullScreen); + // setWindowState(Qt::WindowFullScreen); resize(800, 600); MIaV::info->log("MIaV is ready."); @@ -165,8 +154,10 @@ void MainWindow::snapshot_clicked() char rgb[720 * 576 * 4]; + // QImage screenshot((uchar*)rgb, 720, 576, QImage::Format_RGB32); QImage screenshot((uchar*)rgb, 720, 576, QImage::Format_RGB32); - decoder->snapshot(rgb); + // decoder->snapshot(rgb); + decoder->snapshot((char*)screenshot.bits()); QPixmap *p = new QPixmap(); *p = QPixmap::fromImage(screenshot); |