| 212 | } |
| 213 | |
| 214 | void BufferFormatSpecifier::setContext(ICaptureContext *ctx) |
| 215 | { |
| 216 | m_Ctx = ctx; |
| 217 | |
| 218 | if(!globalFormatList) |
| 219 | globalFormatList = new BufferFormatList(*ctx, ctx->GetMainWindow()->Widget()); |
| 220 | |
| 221 | QObject::connect(globalFormatList, &BufferFormatList::formatListUpdated, this, |
| 222 | &BufferFormatSpecifier::updateFormatList); |
| 223 | |
| 224 | m_Ctx->GetMainWindow()->RegisterShortcut(QKeySequence(QKeySequence::Refresh).toString(), this, |
| 225 | [this](QWidget *) { apply_clicked(); }); |
| 226 | |
| 227 | updateFormatList(); |
| 228 | } |
| 229 | |
| 230 | void BufferFormatSpecifier::setTitle(QString title) |
| 231 | { |
no test coverage detected