mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-12 14:20:26 +02:00
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'rdlogin/'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
bb3cd1f878
commit
34c07ffc41
@ -24996,3 +24996,5 @@
|
|||||||
* Cleaned up compiler warnings in 'rdlibrary/'.
|
* Cleaned up compiler warnings in 'rdlibrary/'.
|
||||||
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
|
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Cleaned up compiler warnings in 'rdlogedit/'.
|
* Cleaned up compiler warnings in 'rdlogedit/'.
|
||||||
|
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Cleaned up compiler warnings in 'rdlogin/'.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// The User Login/Logout Utility for Rivendell.
|
// The User Login/Logout Utility for Rivendell.
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2023 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2025 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License version 2 as
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -100,8 +100,8 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
|||||||
"order by `LOGIN_NAME`";
|
"order by `LOGIN_NAME`";
|
||||||
q=new RDSqlQuery(sql);
|
q=new RDSqlQuery(sql);
|
||||||
while(q->next()) {
|
while(q->next()) {
|
||||||
if((20+fm.width(q->value(0).toString()))>login_user_width) {
|
if((20+fm.horizontalAdvance(q->value(0).toString()))>login_user_width) {
|
||||||
login_user_width=20+fm.width(q->value(0).toString());
|
login_user_width=20+fm.horizontalAdvance(q->value(0).toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete q;
|
delete q;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user