1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
*** qt-0.99/src/widgets/qlined.cpp Sun Jul 7 18:16:14 1996
--- qt-0.99.new/src/widgets/qlined.cpp Sat Aug 31 13:07:56 1996
***************
*** 99,105 ****
----------------------------------------------------------------------------*/
QLineEdit::QLineEdit( QWidget *parent, const char *name )
! : QWidget( parent, name )
{
initMetaObject();
pm = 0;
--- 99,105 ----
----------------------------------------------------------------------------*/
QLineEdit::QLineEdit( QWidget *parent, const char *name )
! : QFrame( parent, name )
{
initMetaObject();
pm = 0;
***************
*** 113,118 ****
--- 113,119 ----
scrollingLeft = FALSE;
tbuf = "";
setAcceptFocus( TRUE );
+ QFrame::setFrameStyle(QFrame::Panel | QFrame::Sunken);
}
/*----------------------------------------------------------------------------
***************
*** 600,606 ****
if ( frame ) {
QBrush fill( g.base() );
! qDrawWinPanel( p, 0, 0, s.width(), s.height(), g, TRUE, &fill );
}
p->setClipRect( LEFT_MARGIN, TOP_MARGIN,
s.width() - LEFT_MARGIN - RIGHT_MARGIN,
--- 601,618 ----
if ( frame ) {
QBrush fill( g.base() );
! if (QFrame::frameStyle() & QFrame::Panel &&
! (QFrame::frameStyle() & QFrame::Sunken) == QFrame::Sunken)
! qDrawWinPanel( p, 0, 0, s.width(), s.height(), g, TRUE, &fill );
! else if (QFrame::frameStyle() & QFrame::Panel &&
! (QFrame::frameStyle() & QFrame::Sunken) == QFrame::Raised)
! qDrawWinPanel( p, 0, 0, s.width(), s.height(), g, FALSE, &fill );
! else if (QFrame::frameStyle() & QFrame::Panel &&
! (QFrame::frameStyle() & QFrame::Sunken) == QFrame::Plain)
! qDrawPlainRect( p, 0, 0, s.width(), s.height(), g.foreground(), 0, &fill );
! else
! qDrawWinPanel( p, 0, 0, s.width(), s.height(), g, TRUE, &fill );
! // qDrawWinPanel( p, 0, 0, s.width(), s.height(), g, TRUE, &fill );
}
p->setClipRect( LEFT_MARGIN, TOP_MARGIN,
s.width() - LEFT_MARGIN - RIGHT_MARGIN,
*** qt-0.99/src/widgets/qlined.h Sun Jul 7 18:16:14 1996
--- qt-0.99.new/src/widgets/qlined.h Wed Aug 28 06:00:16 1996
***************
*** 19,29 ****
#ifndef QLINED_H
#define QLINED_H
! #include "qwidget.h"
#include "qstring.h"
! class QLineEdit : public QWidget
{
Q_OBJECT
public:
--- 19,29 ----
#ifndef QLINED_H
#define QLINED_H
! #include "qframe.h"
#include "qstring.h"
! class QLineEdit : public QFrame
{
Q_OBJECT
public:
|