lw->setMovement(QListView::Static);
lw->setUniformItemSizes(true);
lw->setGridSize( QSize(w , h) );
lw->setMovement(QListView::Static);
lw->setUniformItemSizes(true);
lw->setGridSize( QSize(w , h) );
- lw->resize( 6 * w + 6 , 6* h);
+ lw->resize( 6 * w + 6 , 6 * h);
bulletpaneSW->setMinimumSize( 6 * w + 6 , 6 * h);
// get individual bullets from pixmap
for (int row = 0; row < 6; ++row) {
for (int col = 0; col < 6; ++col) {
bulletpaneSW->setMinimumSize( 6 * w + 6 , 6 * h);
// get individual bullets from pixmap
for (int row = 0; row < 6; ++row) {
for (int col = 0; col < 6; ++col) {
small.fill();
QPainter painter(&small);
painter.drawPixmap(small.rect(), pixmap, QRect(col * w, row * h, w, h));
small.fill();
QPainter painter(&small);
painter.drawPixmap(small.rect(), pixmap, QRect(col * w, row * h, w, h));
- new QListWidgetItem(QIcon(small), "" , lw, (6*row + col));
+ new QListWidgetItem(QIcon(small), "" , lw, (6 * row + col));
current_font_ = bullets_[level].getFont();
current_font_ = bullets_[level].getFont();
- if (bullets_[level].getFont()<0) {
+ if (bullets_[level].getFont() < 0) {
customCB->setCheckState(Qt::Checked);
customLE->setText(toqstr(bullets_[level].getText()));
} else {
customCB->setCheckState(Qt::Checked);
customLE->setText(toqstr(bullets_[level].getText()));
} else {
void BulletsModule::on_customCB_toggled(bool custom)
{
if (!custom) {
void BulletsModule::on_customCB_toggled(bool custom)
{
if (!custom) {
current_font_ = bulletpaneCO->currentIndex();
return;
}
current_font_ = bulletpaneCO->currentIndex();
return;
}
void BulletsModule::selectItem(int font, int character, bool select)
{
void BulletsModule::selectItem(int font, int character, bool select)
{
return;
QListWidget * lw = static_cast<QListWidget *>(bulletpaneSW->widget(font));
return;
QListWidget * lw = static_cast<QListWidget *>(bulletpaneSW->widget(font));