summaryrefslogtreecommitdiff
path: root/noncore/multimedia
authormickeyl <mickeyl>2003-12-07 13:51:01 (UTC)
committer mickeyl <mickeyl>2003-12-07 13:51:01 (UTC)
commitc648101ca50a9782911b58b5158b31e1d0427ab3 (patch) (side-by-side diff)
tree0fcf5801e23d95e071c7f1b62230c5b15c6256ea /noncore/multimedia
parent2d793ca674944241480f6939814e3f61d0a0e0fb (diff)
downloadopie-c648101ca50a9782911b58b5158b31e1d0427ab3.zip
opie-c648101ca50a9782911b58b5158b31e1d0427ab3.tar.gz
opie-c648101ca50a9782911b58b5158b31e1d0427ab3.tar.bz2
s/QPEMenuBar/QMenuBar:
- remove usage of deprecated classses - makes it easier to migrate to OMenuBar in the future
Diffstat (limited to 'noncore/multimedia') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/showimg/showimg.cpp2
-rw-r--r--noncore/multimedia/showimg/showimg.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/noncore/multimedia/showimg/showimg.cpp b/noncore/multimedia/showimg/showimg.cpp
index 56bdecf..b7754f7 100644
--- a/noncore/multimedia/showimg/showimg.cpp
+++ b/noncore/multimedia/showimg/showimg.cpp
@@ -210,49 +210,49 @@ void ImageWidget::mouseReleaseEvent(QMouseEvent *)
}
//===========================================================================
ImageViewer::ImageViewer( QWidget *parent, const char *name, int wFlags )
: QMainWindow( parent, name, WResizeNoErase ), filename( 0 ), bFromDocView( FALSE )
{
setCaption( tr("Image Viewer") );
setIcon( Resource::loadPixmap( "ImageViewer" ) );
Config cfg("Image Viewer");
cfg.setGroup("Image Viewer");
showThumbView=cfg.readBoolEntry("ShowThumbnails",false);
isSized=cfg.readBoolEntry("SizeToScreen",true);
isFullScreen = FALSE;
setToolBarsMovable( FALSE );
toolBar = new QPEToolBar( this );
toolBar->setHorizontalStretchable( TRUE );
- menuBar = new QPEMenuBar( toolBar );
+ menuBar = new QMenuBar( toolBar );
current=menuBar;
fileMenuFile = new QPopupMenu(this);
//menuBarmenubarFile->insertItem( tr("File"), fileMenu );
fileMenuFile->insertItem(tr("Open"),
this, SLOT(openFile()), 0);
viewMenuFile = new QPopupMenu( this );
//menubarFile->insertItem( tr("View"), viewMenu );
viewMenuFile->insertItem( tr("Thumbnail View"),
this, SLOT(switchThumbView()), 0, SHOW_THUMBNAILS );
viewMenuFile->setItemChecked ( SHOW_THUMBNAILS, showThumbView );
optionsMenuFile = new QPopupMenu( this);
//menubarFile->insertItem( tr("Options"),optionsMenu );
slideAction = new QAction( tr( "Slide show" ), Resource::loadIconSet( "slideshow" ),
QString::null, 0, this, 0 );
diff --git a/noncore/multimedia/showimg/showimg.h b/noncore/multimedia/showimg/showimg.h
index abbd976..da4c0b6 100644
--- a/noncore/multimedia/showimg/showimg.h
+++ b/noncore/multimedia/showimg/showimg.h
@@ -14,49 +14,49 @@
** See http://www.trolltech.com/gpl/ for GPL licensing information.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#ifndef SHOWIMG_H
#define SHOWIMG_H
#include <qwidget.h>
#include <qmainwindow.h>
#include <qimage.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qscrollview.h>
#include <qdialog.h>
#include <qstringlist.h>
#include <qvaluelist.h>
#include <qwmatrix.h>
class QAction;
class QPEToolBar;
-class QPEMenuBar;
+class QMenuBar;
class QPopupMenu;
class QWidgetStack;
class FileSelector;
class DocLnk;
class QLabel;
class QAction;
class QSpinBox;
class ImageFileSelector;
class QTimer;
class ImageWidget : public QWidget
{
Q_OBJECT
public:
ImageWidget( QWidget *parent=0 )
: QWidget( parent ) {
setBackgroundMode(NoBackground);
}
~ImageWidget() { }
void setPixmap( const QPixmap &pm ) {
pixmap = pm;
show();
@@ -229,50 +229,50 @@ private slots:
void rot90();
void rot270();
void normalView();
void fullScreen();
void stopSlideShow();
void blackAndWhite();
void displayInfoDialog();
void displayControlsDialog();
private:
QWMatrix matrix;
bool rotated90;
enum MENU_ITEMS {
SHOW_THUMBNAILS,
SIZE_TO_SCREEN,
BLACKANDWHITE
};
QString filename;
QString delayLoad;
QImage image; // the loaded image
QPixmap pm; // the converted pixmap
QPixmap pmScaled; // the scaled pixmap
QPEToolBar *toolBar;
QPEToolBar *iconToolBar;
- QPEMenuBar *menuBar;
- QPEMenuBar *current;
+ QMenuBar *menuBar;
+ QMenuBar *current;
QPopupMenu *fileMenuFile;
QPopupMenu *viewMenuFile;
QPopupMenu *optionsMenuFile;
QPopupMenu *fileMenuView;
QPopupMenu *viewMenuView;
QAction *sss; // scale to screen size
QLabel *lab;
ImagePane *imagePanel;
QWidgetStack *stack;
//FileSelector *fileSelector;
ImageFileSelector *fileSelector;
bool isFullScreen;
bool isSized; // true if image is to be resized to fit the window size
bool bFromDocView; // a flag to indicate whether or not we were
// launched from the document view...
int slideDelay;
bool slideRepeat;
bool slideReverse; // show slideshow in reverse order
bool rotateOnLoad; // rotate by 90 degrees on loading