Corrected comments and improved logging output.

This commit is contained in:
shawnp%earthling.net 1999-08-30 02:31:34 +00:00
Родитель 741e94cf54
Коммит 974188d3c4
1 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -110,12 +110,14 @@ nsresult nsCheckButton::QueryInterface(const nsIID& aIID, void** aInstancePtr)
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// //
// Set this button label // Set this Checkbox state
// //
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
NS_METHOD nsCheckButton::SetState(const PRBool aState) NS_METHOD nsCheckButton::SetState(const PRBool aState)
{ {
PR_LOG(QtWidgetsLM, PR_LOG_DEBUG, ("nsCheckButton::SetState()\n")); PR_LOG(QtWidgetsLM,
PR_LOG_DEBUG,
("nsCheckButton::SetState() %p:%d\n", this, aState));
((QCheckBox *)mWidget)->setChecked(aState); ((QCheckBox *)mWidget)->setChecked(aState);
return NS_OK; return NS_OK;
@ -123,13 +125,15 @@ NS_METHOD nsCheckButton::SetState(const PRBool aState)
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// //
// Set this button label // Get this Checkbox state
// //
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
NS_METHOD nsCheckButton::GetState(PRBool& aState) NS_METHOD nsCheckButton::GetState(PRBool& aState)
{ {
PR_LOG(QtWidgetsLM, PR_LOG_DEBUG, ("nsCheckButton::GetState()\n"));
aState = ((QCheckBox *)mWidget)->isChecked(); aState = ((QCheckBox *)mWidget)->isChecked();
PR_LOG(QtWidgetsLM,
PR_LOG_DEBUG,
("nsCheckButton::GetState() %p:%d\n", this, aState));
return NS_OK; return NS_OK;
} }