Diffstat (limited to 'noncore/applets/networkapplet/networkapplet.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/networkapplet/networkapplet.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/applets/networkapplet/networkapplet.cpp b/noncore/applets/networkapplet/networkapplet.cpp index 534a8d0..bd6ca66 100644 --- a/noncore/applets/networkapplet/networkapplet.cpp +++ b/noncore/applets/networkapplet/networkapplet.cpp | |||
@@ -74,43 +74,43 @@ void IfaceUpDownButton::clicked() | |||
74 | _iface->setUp( isOn() ); | 74 | _iface->setUp( isOn() ); |
75 | setOn( _iface->isUp() ); // it might not have worked... | 75 | setOn( _iface->isUp() ); // it might not have worked... |
76 | repaint(); | 76 | repaint(); |
77 | } | 77 | } |
78 | 78 | ||
79 | 79 | ||
80 | IfaceIPAddress::IfaceIPAddress( QWidget* parent, const char* name ) | 80 | IfaceIPAddress::IfaceIPAddress( QWidget* parent, const char* name ) |
81 | :QLineEdit( parent, name ) | 81 | :QLineEdit( parent, name ) |
82 | { | 82 | { |
83 | setFont( QFont( "fixed" ) ); | 83 | setFont( QFont( "fixed" ) ); |
84 | _iface = ONetwork::instance()->interface( name ); | 84 | _iface = ONetwork::instance()->interface( name ); |
85 | setFixedWidth( 105 ); | 85 | setFixedWidth( 105 ); |
86 | setText( _iface->ipV4Address() ); | 86 | setText( _iface->ipV4Address().toString() ); |
87 | connect( this, SIGNAL( returnPressed() ), this, SLOT( returnPressed() ) ); | 87 | connect( this, SIGNAL( returnPressed() ), this, SLOT( returnPressed() ) ); |
88 | } | 88 | } |
89 | 89 | ||
90 | 90 | ||
91 | IfaceIPAddress::~IfaceIPAddress() | 91 | IfaceIPAddress::~IfaceIPAddress() |
92 | { | 92 | { |
93 | } | 93 | } |
94 | 94 | ||
95 | 95 | ||
96 | void IfaceIPAddress::returnPressed() | 96 | void IfaceIPAddress::returnPressed() |
97 | { | 97 | { |
98 | QHostAddress a; | 98 | QHostAddress a; |
99 | a.setAddress( text() ); | 99 | a.setAddress( text() ); |
100 | QHostAddress mask; | 100 | QHostAddress mask; |
101 | mask.setAddress( _iface->ipV4Netmask() ); // setIPV4Address destroys the netmask... | 101 | mask.setAddress( _iface->ipV4Netmask().toString() ); // setIPV4Address destroys the netmask... |
102 | _iface->setIPV4Address( a ); | 102 | _iface->setIPV4Address( a ); |
103 | _iface->setIPV4Netmask( mask ); // recover the old netmask | 103 | _iface->setIPV4Netmask( mask ); // recover the old netmask |
104 | setText( _iface->ipV4Address() ); | 104 | setText( _iface->ipV4Address().toString() ); |
105 | repaint(); | 105 | repaint(); |
106 | } | 106 | } |
107 | 107 | ||
108 | 108 | ||
109 | NetworkAppletControl::NetworkAppletControl( OTaskbarApplet* parent, const char* name ) | 109 | NetworkAppletControl::NetworkAppletControl( OTaskbarApplet* parent, const char* name ) |
110 | :QFrame( parent, name, WStyle_StaysOnTop | WType_Popup ), l(0) | 110 | :QFrame( parent, name, WStyle_StaysOnTop | WType_Popup ), l(0) |
111 | { | 111 | { |
112 | setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); | 112 | setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); |
113 | l = new QVBoxLayout( this, 4, 2 ); | 113 | l = new QVBoxLayout( this, 4, 2 ); |
114 | } | 114 | } |
115 | 115 | ||
116 | 116 | ||