VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/extensions/QILineEdit.h@ 69500

Last change on this file since 69500 was 69500, checked in by vboxsync, 7 years ago

*: scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 1.1 KB
Line 
1/* $Id: QILineEdit.h 69500 2017-10-28 15:14:05Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - QILineEdit class declarations.
4 */
5
6/*
7 * Copyright (C) 2008-2017 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef __QILineEdit_h__
19#define __QILineEdit_h__
20
21/* Qt includes */
22#include <QLineEdit>
23
24class QILineEdit: public QLineEdit
25{
26public:
27
28 QILineEdit (QWidget *aParent = 0)
29 :QLineEdit (aParent) {}
30 QILineEdit (const QString &aContents, QWidget *aParent = 0)
31 :QLineEdit (aContents, aParent) {}
32
33 void setMinimumWidthByText (const QString &aText);
34 void setFixedWidthByText (const QString &aText);
35
36private:
37
38 QSize featTextWidth (const QString &aText) const;
39};
40
41#endif /* __QILineEdit_h__ */
42
Note: See TracBrowser for help on using the repository browser.

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