Changeset 2982 for vidalia/trunk/src
- Timestamp:
- 08/17/08 01:58:13 (3 months ago)
- Location:
- vidalia/trunk/src/vidalia
- Files:
-
- 2 modified
-
vidaliawindow.cpp (modified) (2 diffs)
-
vidaliawindow.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vidalia/trunk/src/vidalia/vidaliawindow.cpp
r2362 r2982 26 26 27 27 /** Default constructor. */ 28 VidaliaWindow::VidaliaWindow(QString name, QWidget *parent, Qt::WFlags flags) 28 VidaliaWindow::VidaliaWindow(const QString &name, QWidget *parent, 29 Qt::WFlags flags) 29 30 : QMainWindow(parent, flags) 30 31 { 31 32 _name = name; 32 33 _settings = new VSettings(name); 33 } 34 } 34 35 35 36 /** Destructor. */ … … 42 43 /** Associates a shortcut key sequence with a slot. */ 43 44 void 44 VidaliaWindow::setShortcut( QStringshortcut, const char *slot)45 VidaliaWindow::setShortcut(const QString &shortcut, const char *slot) 45 46 { 46 47 vApp->createShortcut(QKeySequence(shortcut), this, this, slot); -
vidalia/trunk/src/vidalia/vidaliawindow.h
r2362 r2982 31 31 public: 32 32 /** Default constructor. */ 33 VidaliaWindow(QString name, QWidget *parent = 0, Qt::WFlags flags = 0); 33 VidaliaWindow(const QString &name, QWidget *parent = 0, 34 Qt::WFlags flags = 0); 34 35 /** Destructor. */ 35 36 ~VidaliaWindow(); 36 37 37 38 /** Associates a shortcut key sequence with a slot. */ 38 void setShortcut( QStringshortcut, const char *slot);39 void setShortcut(const QString &shortcut, const char *slot); 39 40 /** Saves the size and location of the window. */ 40 41 void saveWindowState();
