QTfrontend/chatwidget.cpp
changeset 1666 b66e014510e7
parent 1626 58fd5bc49a04
child 1860 ce140b2b928a
equal deleted inserted replaced
1665:ab712cca3f5f 1666:b66e014510e7
    50 	mainLayout.addWidget(chatText, 0, 0);
    50 	mainLayout.addWidget(chatText, 0, 0);
    51 
    51 
    52 	chatNicks = new QListWidget(this);
    52 	chatNicks = new QListWidget(this);
    53 	chatNicks->setMinimumHeight(10);
    53 	chatNicks->setMinimumHeight(10);
    54 	chatNicks->setMinimumWidth(10);
    54 	chatNicks->setMinimumWidth(10);
       
    55 	chatNicks->setSortingEnabled(true);
    55 	chatNicks->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
    56 	chatNicks->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
    56 	chatNicks->setContextMenuPolicy(Qt::ActionsContextMenu);
    57 	chatNicks->setContextMenuPolicy(Qt::ActionsContextMenu);
    57 	mainLayout.addWidget(chatNicks, 0, 1);
    58 	mainLayout.addWidget(chatNicks, 0, 1);
    58 
    59 
    59 	QAction * acBan = new QAction(QAction::tr("Kick"), chatNicks);
    60 	QAction * acBan = new QAction(QAction::tr("Kick"), chatNicks);