Duckstation/src/duckstation-qt/qtutils.h

12 lines
333 B
C
Raw Normal View History

2019-12-31 06:17:17 +00:00
#pragma once
#include <initializer_list>
class QTableView;
namespace QtUtils {
/// Resizes columns of the table view to at the specified widths. A width of -1 will stretch the column to use the
/// remaining space.
void ResizeColumnsForTableView(QTableView* view, const std::initializer_list<int>& widths);
} // namespace QtUtils