summaryrefslogtreecommitdiffhomepage
path: root/gui/process-detector-fancy-table.cpp
blob: af3aa8301f33641d4b8a5910cea6cb16f6306d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "process-detector-fancy-table.hpp"

void FancyTable::resizeEvent(QResizeEvent* e)
{
    QTableView::resizeEvent(e);
    int w = width();
    setColumnWidth(2, 32);
    w -= 48;
    setColumnWidth(0, w / 2);
    setColumnWidth(1, w / 2);
}

FancyTable::FancyTable(QWidget* parent) : QTableWidget(parent) {}