Changeset 124 for smplayer/trunk/src/filechooser.h
- Timestamp:
- Mar 16, 2012, 4:02:47 PM (13 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 121-122
- Property svn:mergeinfo changed
-
smplayer/trunk/src/filechooser.h
r119 r124 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 1 Ricardo Villalba <rvm@escomposlinux.org>2 Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 20 20 #define _FILECHOOSER_H_ 21 21 22 #include " ui_filechooser.h"22 #include "lineedit_with_icon.h" 23 23 #include <QFileDialog> 24 24 25 class FileChooser : public QWidget, public Ui::FileChooser 25 class QToolButton; 26 27 class FileChooser : public LineEditWithIcon 26 28 { 27 29 Q_OBJECT … … 38 40 ~FileChooser(); 39 41 40 QLineEdit * lineEdit();41 QToolButton * toolButton();42 43 QString text() const;44 42 QString caption() const { return _caption; }; 45 43 QString filter() const { return _filter; }; … … 48 46 49 47 public slots: 50 void setText(const QString & text);51 48 void setCaption(const QString & caption) { _caption = caption; }; 52 49 void setFilter(const QString & filter) { _filter = filter; }; … … 57 54 void fileChanged(QString file); 58 55 56 protected: 57 virtual void setupButton(); 58 59 59 protected slots: 60 virtual void o n_button_clicked();60 virtual void openFileDialog(); 61 61 62 62 protected: … … 65 65 DialogType _type; 66 66 QFileDialog::Options _options; 67 68 static QString last_dir; 67 69 }; 68 70
Note:
See TracChangeset
for help on using the changeset viewer.